]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
src: Make sure to include local elfutils headers, not system headers users/mark/try-src-include-update
authorMark Wielaard <mark@klomp.org>
Thu, 26 Jun 2025 14:20:41 +0000 (16:20 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 26 Jun 2025 14:41:07 +0000 (16:41 +0200)
Signed-off-by: Mark Wielaard <mark@klomp.org>
18 files changed:
libdw/dwarf_srclang.c
src/addr2line.c
src/ar.c
src/arlib.c
src/arlib.h
src/elfclassify.c
src/elfcompress.c
src/elflint.c
src/findtextrel.c
src/nm.c
src/ranlib.c
src/readelf.c
src/size.c
src/srcfiles.cxx
src/stack.c
src/strings.c
src/strip.c
src/unstrip.c

index 10dfce8be3e3e8f459b106ad3deb6ed3a7634cc1..990588db80bf0799cfe2a48755745a5831a42c9d 100644 (file)
@@ -32,7 +32,7 @@
 # include <config.h>
 #endif
 
-#include <dwarf.h>
+#include "dwarf.h"
 #include "libdwP.h"
 
 
index d87e5b45e0a97bc1bb1e7b52981b9424fc0997dc..6420e816fbb5c98e07158692e15cbeb1b3b6787b 100644 (file)
@@ -26,8 +26,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
-#include <libdwfl.h>
-#include <dwarf.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -39,6 +37,8 @@
 #include <system.h>
 #include <printversion.h>
 
+#include "libdwfl.h"
+#include "dwarf.h"
 
 /* Name and version of program.  */
 ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
index 03118c4eadbe6fb2c1096c711de701c0e475f2ab..ded72854c3483c4e95d0d6a5c275cb7db9d17fc6 100644 (file)
--- a/src/ar.c
+++ b/src/ar.c
@@ -23,7 +23,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <limits.h>
 #include <locale.h>
 #include <search.h>
@@ -41,6 +40,7 @@
 #include <system.h>
 #include <printversion.h>
 
+#include "gelf.h"
 #include "libeu.h"
 #include "arlib.h"
 
index b8f89ba7df8751f1ddbff8ac7a85833dff45cc3f..02c022324c306a52d739b6ce79db101b47b61add 100644 (file)
 #endif
 
 #include <assert.h>
-#include <gelf.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
 
-#include <libeu.h>
+#include "gelf.h"
+#include "libeu.h"
 
 #include "system.h"
 #include "arlib.h"
index d4a4221072d83de73fcd4c883a083cf65beb0a67..b12301b122ae621e9bbf0b70c9559876136954c8 100644 (file)
 #include <argp.h>
 #include <byteswap.h>
 #include <endian.h>
-#include <libelf.h>
 #include <obstack.h>
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/types.h>
 
+#include "libelf.h"
 
 /* State of -D/-U flags.  */
 extern bool arlib_deterministic_output;
index 25fe9a652ea4df46473ce852a4b9ee0f6088feef..d278d4e26b512001ae0b4316ea32bf7bd8fefb66 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <argp.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdio.h>
@@ -29,8 +28,9 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include ELFUTILS_HEADER(elf)
-#include ELFUTILS_HEADER(dwelf)
+#include "libelf.h"
+#include "libdwelf.h"
+#include "gelf.h"
 #include "printversion.h"
 
 /* Name and version of program.  */
index f771b92afabf9974e3e2cf26d4ea3bd2bd7a3789..bfeedfe1bc37797f52996c701cbd39da49f3e32f 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include ELFUTILS_HEADER(elf)
-#include ELFUTILS_HEADER(ebl)
-#include ELFUTILS_HEADER(dwelf)
-#include <gelf.h>
+
+#include "libelf.h"
+#include "libebl.h"
+#include "libdwelf.h"
+#include "gelf.h"
 #include "system.h"
 #include "libeu.h"
 #include "printversion.h"
index a46682c757ea0e152801a73bfdedc273966dd4be..ea291f9bc1c01879686e58799ea0d345092bac6f 100644 (file)
@@ -26,7 +26,6 @@
 #include <byteswap.h>
 #include <endian.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <inttypes.h>
 #include <locale.h>
 #include <stdbool.h>
@@ -35,8 +34,9 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
-#include <elf-knowledge.h>
-#include <libeu.h>
+#include "gelf.h"
+#include "elf-knowledge.h"
+#include "libeu.h"
 #include <system.h>
 #include <printversion.h>
 #include "../libelf/libelfP.h"
index d3021a3a0ac76ec32ec411e31ac02773cdbc44ce..e42f4d2e8e103b59b906538d9dcfa1f8f27b9235 100644 (file)
@@ -24,8 +24,6 @@
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <gelf.h>
-#include <libdw.h>
 #include <locale.h>
 #include <search.h>
 #include <stdbool.h>
@@ -37,6 +35,8 @@
 #include <printversion.h>
 #include "libeu.h"
 #include "system.h"
+#include "gelf.h"
+#include "libdw.h"
 
 struct segments
 {
index 40b192f67b924eaba5d3d2dfa71bc8b09ba40654..330189977be755e16bd1abf1db38fb056a24621c 100644 (file)
--- a/src/nm.c
+++ b/src/nm.c
 #include <argp.h>
 #include <assert.h>
 #include <ctype.h>
-#include <dwarf.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <inttypes.h>
-#include <libdw.h>
 #include <locale.h>
 #include <obstack.h>
 #include <search.h>
 #include <system.h>
 #include <color.h>
 #include <printversion.h>
+
+#include "dwarf.h"
+#include "gelf.h"
+#include "libdw.h"
 #include "../libebl/libeblP.h"
 #include "../libdwfl/libdwflP.h"
 
index 073df8c551afd006a839ba2ca7898c02bcdb461f..9c66d3d4c6977ecd17c3e8583adb912335360171 100644 (file)
@@ -25,7 +25,6 @@
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <locale.h>
 #include <obstack.h>
 #include <stdlib.h>
@@ -38,6 +37,7 @@
 #include <system.h>
 #include <printversion.h>
 
+#include "gelf.h"
 #include "arlib.h"
 
 
index b7dba390e4fb1b903b8b71435240f370927a5d9a..222afdd6f77be42c8be4be7355d67260d8dfea2f 100644 (file)
 #include <argp.h>
 #include <assert.h>
 #include <ctype.h>
-#include <dwarf.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <inttypes.h>
 #include <langinfo.h>
-#include <libdw.h>
-#include <libdwfl.h>
 #include <locale.h>
 #include <stdarg.h>
 #include <stdbool.h>
 #include <libeu.h>
 #include <system.h>
 #include <printversion.h>
+
+#include "dwarf.h"
+#include "gelf.h"
+#include "libdw.h"
+#include "libdwfl.h"
 #include "../libelf/libelfP.h"
 #include "../libelf/common.h"
 #include "../libebl/libeblP.h"
index 2985bc09be98039284279f58b4b1e14507a99efc..64e8cd4016f3deba8d14d09f8dfb5eefa9036376 100644 (file)
@@ -22,9 +22,7 @@
 
 #include <argp.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <inttypes.h>
-#include <libelf.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -36,6 +34,9 @@
 #include <system.h>
 #include <printversion.h>
 
+#include "gelf.h"
+#include "libelf.h"
+
 /* Name and version of program.  */
 ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
 
index c36a70349af0700ee93f40cb3b2b169bac3b96a5..dcefeffd4ee0659296460e4ead9471835527865e 100644 (file)
 #endif
 
 #include "printversion.h"
-#include <dwarf.h>
 #include <argp.h>
 #include <cstring>
 #include <set>
 #include <string>
 #include <cassert>
-#include <gelf.h>
 #include <memory>
 
 #ifdef ENABLE_LIBDEBUGINFOD
 #include "debuginfod.h"
 #endif
 
-#include <libdwfl.h>
 #include <fcntl.h>
 #include <iostream>
-#include <libdw.h>
 #include <sstream>
 #include <vector>
 
+#include "dwarf.h"
+#include "gelf.h"
+#include "libdw.h"
+#include "libdwfl.h"
+
 /* Libraries for use by the --zip option */
 #ifdef HAVE_LIBARCHIVE
 #include <archive.h>
index a06cb077b1210a4339581faded3ff296f36ffc2d..c67de57873b2761efa09f0cafa6e1c376583465d 100644 (file)
 #include <string.h>
 #include <locale.h>
 #include <fcntl.h>
-#include ELFUTILS_HEADER(dwfl)
 
-#include <dwarf.h>
 #include <system.h>
 #include <printversion.h>
 
+#include "libdwfl.h"
+#include "dwarf.h"
+
 /* Name and version of program.  */
 ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
 
index fe0f3a484a0493de7bd9f15ea9ef1e3cd20f498c..590ef5a9155aa0bd6494460598895c234a29be3d 100644 (file)
@@ -26,7 +26,6 @@
 #include <endian.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <gelf.h>
 #include <inttypes.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 
-#include <libeu.h>
 #include <system.h>
 #include <printversion.h>
 
+#include "gelf.h"
+#include "libeu.h"
+
 #ifndef MAP_POPULATE
 # define MAP_POPULATE 0
 #endif
index 8d2bb7a959f0c2066e5afae8c4017e455ee30053..70870167e8dd1effaa39d796a036604b285ba77f 100644 (file)
@@ -26,8 +26,6 @@
 #include <endian.h>
 #include <fcntl.h>
 #include <fnmatch.h>
-#include <gelf.h>
-#include <libelf.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 
-#include <elf-knowledge.h>
-#include <libebl.h>
+#include "gelf.h"
+#include "libelf.h"
+#include "elf-knowledge.h"
+#include "libebl.h"
 #include "libdwelf.h"
-#include <libeu.h>
+#include "libeu.h"
+
 #include <system.h>
 #include <printversion.h>
 
index 6c2a98ef96f25dd6a49e90f8f29665261d6f4cf7..978904c56cd9f1af76041a57b885be233a662780 100644 (file)
@@ -43,9 +43,9 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
-#include <gelf.h>
-#include <libebl.h>
-#include <libdwfl.h>
+#include "gelf.h"
+#include "libebl.h"
+#include "libdwfl.h"
 #include "system.h"
 #include "libdwelf.h"
 #include "libeu.h"