elfutils build and testing

2017-09-18 Thread Phi Debian
Hi All,


Just subscribed :).

Here is my 1st question.

I just git cloned the elfutils.git

How to I build it, to my surprise there is no configure script
(assuming the clone is not damaged)

My secondary question is assuming I can build what is the process to
run the test suite?

I run on ubuntu
Distributor ID: Ubuntu
Description:Ubuntu 16.04.3 LTS
Release:16.04
Codename:   xenial

Thanx in advance
Cheers,
Phi


Re: elfutils build and testing

2017-09-18 Thread Phi Debian
Hi All

Sorry about that, I figured that using the tarball do provide the
configure script, I'll start from there.

Cheers
Phi


readelf ignore .debug_pubtypes

2018-03-23 Thread Phi Debian
Hi All,

I am affraid I will ask a trivial question but can't find any pointers.

I am using the latest git available source code for readelf, and build is ok.
DL$ ~/elfutils/src/readelf --version
readelf (elfutils) 0.170

I got a vmlinux kernel with a .debug_pubtypes section

DL$  ~/elfutils/src/readelf -S ./vmlinux  |  grep pubtypes
[44] .debug_pubtypes  PROGBITS  07336c70
0072cb93  00   0  1

DL$ ~/elfutils/src/readelf --debug=pubtypes ./vmlinux  | more
Unknown DWARF debug section `pubtypes'.


Is that expected ?

Thanx in advance,
Phi


Supress false positive warning GCC -O3

2025-01-09 Thread Phi Debian
Building with gcc -O3 bring false positive warning. This is a GCC bug, and
this patch is a work around.

This is reported at
https://sourceware.org/bugzilla/show_bug.cgi?id=32527

Cheers,
Phi
From 3ac65cf6eec36a9a22af378e89bc4d5b148d8713 Mon Sep 17 00:00:00 2001
From: Philippe Benard 
Date: Thu, 9 Jan 2025 14:59:00 +0100
Subject: [PATCH] libcpu: Remove false positive null ptr deref warning for GCC
 -O3

See bugzilla Bug#32527

* libcpu/Makefile.am
i386_lex_CFLAGS += $(subst -O3,-Wno-null-dereference,$(findstring -O3,$(CFLAGS)))

i386_lex_CFLAGS is a make variable to tweak the i386_lex.c.o
specific compile flags. The are already some -W defined there, I'd
like to add one to avoid seeing false warning during build with -O3
compile flag.

GCC 14.2 (as well as 13.x) produce a false positive warning for the
i386 lexer, a bug is filled already against GCC for that, CLANG is
imune.

Signed-off-by: Philippe Benard 
---
 libcpu/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am
index 32835237..2e87021b 100644
--- a/libcpu/Makefile.am
+++ b/libcpu/Makefile.am
@@ -91,6 +91,8 @@ libeu = ../lib/libeu.a
 
 i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare \
 		  -Wno-implicit-fallthrough
+i386_lex_CFLAGS += $(subst -O3,-Wno-null-dereference,$(findstring -O3,$(CFLAGS)))
+
 i386_parse.o: i386_parse.c i386.mnemonics
 i386_lex.o: i386_parse.h
 i386_gendis_LDADD = $(libeu) -lm $(obstack_LIBS)
-- 
2.43.0