summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch201
1 files changed, 83 insertions, 118 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
index a42ce7b358..e88f2c069c 100644
--- a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
+++ b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch
@@ -1,16 +1,15 @@
1From ef0981744669149a00dd0439a54dac30de7b56a7 Mon Sep 17 00:00:00 2001 1From 207be05c44da5c4c31179a34660e176145ff8d4b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 16 Aug 2017 10:06:26 +0800 3Date: Mon, 2 Jul 2018 09:52:23 +0800
4Subject: [PATCH] build: Provide alternatives for glibc assumptions helps 4Subject: [PATCH] build: Provide alternatives for glibc assumptions helps
5 compiling it on musl 5 compiling it on musl
6 6
7Upstream-Status: Pending 7Upstream-Status: Pending
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 9
10Rebase to 0.170 10Rebase to 0.172
11 11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13
14--- 13---
15 Makefile.am | 2 +- 14 Makefile.am | 2 +-
16 lib/color.c | 3 ++- 15 lib/color.c | 3 ++-
@@ -24,10 +23,9 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
24 libcpu/i386_parse.c | 2 +- 23 libcpu/i386_parse.c | 2 +-
25 libdw/Makefile.am | 3 ++- 24 libdw/Makefile.am | 3 ++-
26 libdw/libdw_alloc.c | 2 +- 25 libdw/libdw_alloc.c | 2 +-
27 libdwfl/dwfl_build_id_find_elf.c | 3 ++- 26 libdwfl/dwfl_build_id_find_elf.c | 1 +
28 libdwfl/dwfl_error.c | 4 +++- 27 libdwfl/dwfl_error.c | 4 +++-
29 libdwfl/dwfl_module_getdwarf.c | 1 + 28 libdwfl/dwfl_module_getdwarf.c | 1 +
30 libdwfl/find-debuginfo.c | 2 +-
31 libdwfl/libdwfl_crc32_file.c | 9 +++++++++ 29 libdwfl/libdwfl_crc32_file.c | 9 +++++++++
32 libdwfl/linux-kernel-modules.c | 1 + 30 libdwfl/linux-kernel-modules.c | 1 +
33 libebl/eblopenbackend.c | 2 +- 31 libebl/eblopenbackend.c | 2 +-
@@ -75,16 +73,15 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
75 tests/getsrc_die.c | 2 +- 73 tests/getsrc_die.c | 2 +-
76 tests/line2addr.c | 2 +- 74 tests/line2addr.c | 2 +-
77 tests/low_high_pc.c | 2 +- 75 tests/low_high_pc.c | 2 +-
78 tests/md5-sha1-test.c | 2 +-
79 tests/rdwrmmap.c | 2 +- 76 tests/rdwrmmap.c | 2 +-
80 tests/saridx.c | 2 +- 77 tests/saridx.c | 2 +-
81 tests/sectiondump.c | 2 +- 78 tests/sectiondump.c | 2 +-
82 tests/varlocs.c | 2 +- 79 tests/varlocs.c | 2 +-
83 tests/vdsosyms.c | 2 +- 80 tests/vdsosyms.c | 2 +-
84 69 files changed, 95 insertions(+), 64 deletions(-) 81 67 files changed, 92 insertions(+), 61 deletions(-)
85 82
86diff --git a/Makefile.am b/Makefile.am 83diff --git a/Makefile.am b/Makefile.am
87index 2ff444e7..41f77df8 100644 84index 2ff444e..41f77df 100644
88--- a/Makefile.am 85--- a/Makefile.am
89+++ b/Makefile.am 86+++ b/Makefile.am
90@@ -28,7 +28,7 @@ pkginclude_HEADERS = version.h 87@@ -28,7 +28,7 @@ pkginclude_HEADERS = version.h
@@ -97,7 +94,7 @@ index 2ff444e7..41f77df8 100644
97 EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ 94 EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
98 COPYING COPYING-GPLV2 COPYING-LGPLV3 95 COPYING COPYING-GPLV2 COPYING-LGPLV3
99diff --git a/lib/color.c b/lib/color.c 96diff --git a/lib/color.c b/lib/color.c
100index f62389d5..a2a84b46 100644 97index f62389d..a2a84b4 100644
101--- a/lib/color.c 98--- a/lib/color.c
102+++ b/lib/color.c 99+++ b/lib/color.c
103@@ -32,13 +32,14 @@ 100@@ -32,13 +32,14 @@
@@ -117,7 +114,7 @@ index f62389d5..a2a84b46 100644
117 /* Prototype for option handler. */ 114 /* Prototype for option handler. */
118 static error_t parse_opt (int key, char *arg, struct argp_state *state); 115 static error_t parse_opt (int key, char *arg, struct argp_state *state);
119diff --git a/lib/fixedsizehash.h b/lib/fixedsizehash.h 116diff --git a/lib/fixedsizehash.h b/lib/fixedsizehash.h
120index dac2a5f5..43016fc3 100644 117index dac2a5f..43016fc 100644
121--- a/lib/fixedsizehash.h 118--- a/lib/fixedsizehash.h
122+++ b/lib/fixedsizehash.h 119+++ b/lib/fixedsizehash.h
123@@ -30,7 +30,6 @@ 120@@ -30,7 +30,6 @@
@@ -129,7 +126,7 @@ index dac2a5f5..43016fc3 100644
129 #include <system.h> 126 #include <system.h>
130 127
131diff --git a/lib/system.h b/lib/system.h 128diff --git a/lib/system.h b/lib/system.h
132index 92033355..1a601319 100644 129index 9203335..1a60131 100644
133--- a/lib/system.h 130--- a/lib/system.h
134+++ b/lib/system.h 131+++ b/lib/system.h
135@@ -50,6 +50,16 @@ 132@@ -50,6 +50,16 @@
@@ -150,7 +147,7 @@ index 92033355..1a601319 100644
150 #ifndef MAX 147 #ifndef MAX
151 #define MAX(m, n) ((m) < (n) ? (n) : (m)) 148 #define MAX(m, n) ((m) < (n) ? (n) : (m))
152diff --git a/lib/xmalloc.c b/lib/xmalloc.c 149diff --git a/lib/xmalloc.c b/lib/xmalloc.c
153index 0cde384f..217b0541 100644 150index 0cde384..217b054 100644
154--- a/lib/xmalloc.c 151--- a/lib/xmalloc.c
155+++ b/lib/xmalloc.c 152+++ b/lib/xmalloc.c
156@@ -30,7 +30,7 @@ 153@@ -30,7 +30,7 @@
@@ -163,7 +160,7 @@ index 0cde384f..217b0541 100644
163 #include <stddef.h> 160 #include <stddef.h>
164 #include <stdlib.h> 161 #include <stdlib.h>
165diff --git a/libasm/asm_end.c b/libasm/asm_end.c 162diff --git a/libasm/asm_end.c b/libasm/asm_end.c
166index ced24f50..4ad918c4 100644 163index ced24f5..4ad918c 100644
167--- a/libasm/asm_end.c 164--- a/libasm/asm_end.c
168+++ b/libasm/asm_end.c 165+++ b/libasm/asm_end.c
169@@ -32,7 +32,7 @@ 166@@ -32,7 +32,7 @@
@@ -176,7 +173,7 @@ index ced24f50..4ad918c4 100644
176 #include <stdio.h> 173 #include <stdio.h>
177 #include <stdlib.h> 174 #include <stdlib.h>
178diff --git a/libasm/asm_newscn.c b/libasm/asm_newscn.c 175diff --git a/libasm/asm_newscn.c b/libasm/asm_newscn.c
179index ddbb25df..74a598d9 100644 176index ddbb25d..74a598d 100644
180--- a/libasm/asm_newscn.c 177--- a/libasm/asm_newscn.c
181+++ b/libasm/asm_newscn.c 178+++ b/libasm/asm_newscn.c
182@@ -32,7 +32,7 @@ 179@@ -32,7 +32,7 @@
@@ -189,7 +186,7 @@ index ddbb25df..74a598d9 100644
189 #include <stdlib.h> 186 #include <stdlib.h>
190 #include <string.h> 187 #include <string.h>
191diff --git a/libcpu/i386_gendis.c b/libcpu/i386_gendis.c 188diff --git a/libcpu/i386_gendis.c b/libcpu/i386_gendis.c
192index aae5eae6..6d760165 100644 189index aae5eae..6d76016 100644
193--- a/libcpu/i386_gendis.c 190--- a/libcpu/i386_gendis.c
194+++ b/libcpu/i386_gendis.c 191+++ b/libcpu/i386_gendis.c
195@@ -31,7 +31,7 @@ 192@@ -31,7 +31,7 @@
@@ -202,10 +199,10 @@ index aae5eae6..6d760165 100644
202 #include <stdio.h> 199 #include <stdio.h>
203 #include <stdlib.h> 200 #include <stdlib.h>
204diff --git a/libcpu/i386_lex.c b/libcpu/i386_lex.c 201diff --git a/libcpu/i386_lex.c b/libcpu/i386_lex.c
205index ba5f4aa5..b1e41916 100644 202index facdf71..f13842f 100644
206--- a/libcpu/i386_lex.c 203--- a/libcpu/i386_lex.c
207+++ b/libcpu/i386_lex.c 204+++ b/libcpu/i386_lex.c
208@@ -577,7 +577,7 @@ char *i386_text; 205@@ -571,7 +571,7 @@ char *i386_text;
209 #endif 206 #endif
210 207
211 #include <ctype.h> 208 #include <ctype.h>
@@ -215,7 +212,7 @@ index ba5f4aa5..b1e41916 100644
215 212
216 #include <libeu.h> 213 #include <libeu.h>
217diff --git a/libcpu/i386_parse.c b/libcpu/i386_parse.c 214diff --git a/libcpu/i386_parse.c b/libcpu/i386_parse.c
218index 6fa7ce3d..bb270061 100644 215index 3c5058a..bf402d6 100644
219--- a/libcpu/i386_parse.c 216--- a/libcpu/i386_parse.c
220+++ b/libcpu/i386_parse.c 217+++ b/libcpu/i386_parse.c
221@@ -107,7 +107,7 @@ 218@@ -107,7 +107,7 @@
@@ -228,10 +225,10 @@ index 6fa7ce3d..bb270061 100644
228 #include <libintl.h> 225 #include <libintl.h>
229 #include <math.h> 226 #include <math.h>
230diff --git a/libdw/Makefile.am b/libdw/Makefile.am 227diff --git a/libdw/Makefile.am b/libdw/Makefile.am
231index ff8c291e..89e792aa 100644 228index 41df4f3..e6b275f 100644
232--- a/libdw/Makefile.am 229--- a/libdw/Makefile.am
233+++ b/libdw/Makefile.am 230+++ b/libdw/Makefile.am
234@@ -105,7 +105,8 @@ am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os) 231@@ -107,7 +107,8 @@ am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
235 libdw_so_LIBS = libdw_pic.a ../libdwelf/libdwelf_pic.a \ 232 libdw_so_LIBS = libdw_pic.a ../libdwelf/libdwelf_pic.a \
236 ../libdwfl/libdwfl_pic.a ../libebl/libebl.a 233 ../libdwfl/libdwfl_pic.a ../libebl/libebl.a
237 libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so 234 libdw_so_DEPS = ../lib/libeu.a ../libelf/libelf.so
@@ -242,7 +239,7 @@ index ff8c291e..89e792aa 100644
242 libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS) 239 libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS)
243 # The rpath is necessary for libebl because its $ORIGIN use will 240 # The rpath is necessary for libebl because its $ORIGIN use will
244diff --git a/libdw/libdw_alloc.c b/libdw/libdw_alloc.c 241diff --git a/libdw/libdw_alloc.c b/libdw/libdw_alloc.c
245index 28a8cf6e..29aeb3f7 100644 242index d6af23a..deb724c 100644
246--- a/libdw/libdw_alloc.c 243--- a/libdw/libdw_alloc.c
247+++ b/libdw/libdw_alloc.c 244+++ b/libdw/libdw_alloc.c
248@@ -31,7 +31,7 @@ 245@@ -31,7 +31,7 @@
@@ -255,7 +252,7 @@ index 28a8cf6e..29aeb3f7 100644
255 #include <stdlib.h> 252 #include <stdlib.h>
256 #include "libdwP.h" 253 #include "libdwP.h"
257diff --git a/libdwfl/dwfl_build_id_find_elf.c b/libdwfl/dwfl_build_id_find_elf.c 254diff --git a/libdwfl/dwfl_build_id_find_elf.c b/libdwfl/dwfl_build_id_find_elf.c
258index ee0c1646..b06ab596 100644 255index cc6c3f6..b06ab59 100644
259--- a/libdwfl/dwfl_build_id_find_elf.c 256--- a/libdwfl/dwfl_build_id_find_elf.c
260+++ b/libdwfl/dwfl_build_id_find_elf.c 257+++ b/libdwfl/dwfl_build_id_find_elf.c
261@@ -31,6 +31,7 @@ 258@@ -31,6 +31,7 @@
@@ -266,17 +263,8 @@ index ee0c1646..b06ab596 100644
266 #include <inttypes.h> 263 #include <inttypes.h>
267 #include <fcntl.h> 264 #include <fcntl.h>
268 #include <unistd.h> 265 #include <unistd.h>
269@@ -99,7 +100,7 @@ __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name,
270 {
271 if (*file_name != NULL)
272 free (*file_name);
273- *file_name = canonicalize_file_name (name);
274+ *file_name = realpath (name, NULL);
275 if (*file_name == NULL)
276 {
277 *file_name = name;
278diff --git a/libdwfl/dwfl_error.c b/libdwfl/dwfl_error.c 266diff --git a/libdwfl/dwfl_error.c b/libdwfl/dwfl_error.c
279index 7bcf61cc..c345797a 100644 267index 7bcf61c..c345797 100644
280--- a/libdwfl/dwfl_error.c 268--- a/libdwfl/dwfl_error.c
281+++ b/libdwfl/dwfl_error.c 269+++ b/libdwfl/dwfl_error.c
282@@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error) 270@@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
@@ -298,7 +286,7 @@ index 7bcf61cc..c345797a 100644
298 return elf_errmsg (error & 0xffff); 286 return elf_errmsg (error & 0xffff);
299 case OTHER_ERROR (LIBDW): 287 case OTHER_ERROR (LIBDW):
300diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c 288diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c
301index 9775aced..511c4a6a 100644 289index af6838a..c079d6a 100644
302--- a/libdwfl/dwfl_module_getdwarf.c 290--- a/libdwfl/dwfl_module_getdwarf.c
303+++ b/libdwfl/dwfl_module_getdwarf.c 291+++ b/libdwfl/dwfl_module_getdwarf.c
304@@ -35,6 +35,7 @@ 292@@ -35,6 +35,7 @@
@@ -309,21 +297,8 @@ index 9775aced..511c4a6a 100644
309 #include "../libdw/libdwP.h" /* DWARF_E_* values are here. */ 297 #include "../libdw/libdwP.h" /* DWARF_E_* values are here. */
310 #include "../libelf/libelfP.h" 298 #include "../libelf/libelfP.h"
311 #include "system.h" 299 #include "system.h"
312diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c
313index 6d5a42a6..9267788d 100644
314--- a/libdwfl/find-debuginfo.c
315+++ b/libdwfl/find-debuginfo.c
316@@ -389,7 +389,7 @@ dwfl_standard_find_debuginfo (Dwfl_Module *mod,
317 /* If FILE_NAME is a symlink, the debug file might be associated
318 with the symlink target name instead. */
319
320- char *canon = canonicalize_file_name (file_name);
321+ char *canon = realpath (file_name, NULL);
322 if (canon != NULL && strcmp (file_name, canon))
323 fd = find_debuginfo_in_path (mod, canon,
324 debuglink_file, debuglink_crc,
325diff --git a/libdwfl/libdwfl_crc32_file.c b/libdwfl/libdwfl_crc32_file.c 300diff --git a/libdwfl/libdwfl_crc32_file.c b/libdwfl/libdwfl_crc32_file.c
326index f849128d..6f0aca1b 100644 301index f849128..6f0aca1 100644
327--- a/libdwfl/libdwfl_crc32_file.c 302--- a/libdwfl/libdwfl_crc32_file.c
328+++ b/libdwfl/libdwfl_crc32_file.c 303+++ b/libdwfl/libdwfl_crc32_file.c
329@@ -29,6 +29,15 @@ 304@@ -29,6 +29,15 @@
@@ -343,7 +318,7 @@ index f849128d..6f0aca1b 100644
343 #define crc32 __libdwfl_crc32 318 #define crc32 __libdwfl_crc32
344 #include <libdwflP.h> 319 #include <libdwflP.h>
345diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c 320diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
346index 9d0fef2c..9fc09b88 100644 321index 9d0fef2..9fc09b8 100644
347--- a/libdwfl/linux-kernel-modules.c 322--- a/libdwfl/linux-kernel-modules.c
348+++ b/libdwfl/linux-kernel-modules.c 323+++ b/libdwfl/linux-kernel-modules.c
349@@ -40,6 +40,7 @@ 324@@ -40,6 +40,7 @@
@@ -355,7 +330,7 @@ index 9d0fef2c..9fc09b88 100644
355 #include <errno.h> 330 #include <errno.h>
356 #include <stdio.h> 331 #include <stdio.h>
357diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c 332diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
358index 53713963..2e66dfdd 100644 333index 8b063f4..9bdeead 100644
359--- a/libebl/eblopenbackend.c 334--- a/libebl/eblopenbackend.c
360+++ b/libebl/eblopenbackend.c 335+++ b/libebl/eblopenbackend.c
361@@ -32,7 +32,7 @@ 336@@ -32,7 +32,7 @@
@@ -368,7 +343,7 @@ index 53713963..2e66dfdd 100644
368 #include <dwarf.h> 343 #include <dwarf.h>
369 #include <stdlib.h> 344 #include <stdlib.h>
370diff --git a/libelf/elf.h b/libelf/elf.h 345diff --git a/libelf/elf.h b/libelf/elf.h
371index 5cf2b934..990b3afb 100644 346index f774898..be277d0 100644
372--- a/libelf/elf.h 347--- a/libelf/elf.h
373+++ b/libelf/elf.h 348+++ b/libelf/elf.h
374@@ -21,7 +21,9 @@ 349@@ -21,7 +21,9 @@
@@ -382,9 +357,9 @@ index 5cf2b934..990b3afb 100644
382 357
383 /* Standard ELF types. */ 358 /* Standard ELF types. */
384 359
385@@ -3705,6 +3707,8 @@ enum 360@@ -3912,6 +3914,8 @@ enum
386 #define R_BPF_NONE 0 /* No reloc */ 361 #define R_METAG_TLS_LE_HI16 60
387 #define R_BPF_MAP_FD 1 /* Map fd to pointer */ 362 #define R_METAG_TLS_LE_LO16 61
388 363
389-__END_DECLS 364-__END_DECLS
390+#ifdef __cplusplus 365+#ifdef __cplusplus
@@ -393,7 +368,7 @@ index 5cf2b934..990b3afb 100644
393 368
394 #endif /* elf.h */ 369 #endif /* elf.h */
395diff --git a/libelf/libelf.h b/libelf/libelf.h 370diff --git a/libelf/libelf.h b/libelf/libelf.h
396index 547c0f50..dd78799e 100644 371index 547c0f5..dd78799 100644
397--- a/libelf/libelf.h 372--- a/libelf/libelf.h
398+++ b/libelf/libelf.h 373+++ b/libelf/libelf.h
399@@ -29,6 +29,7 @@ 374@@ -29,6 +29,7 @@
@@ -405,7 +380,7 @@ index 547c0f50..dd78799e 100644
405 #include <sys/types.h> 380 #include <sys/types.h>
406 381
407diff --git a/libelf/libelfP.h b/libelf/libelfP.h 382diff --git a/libelf/libelfP.h b/libelf/libelfP.h
408index 7ee6625a..58408997 100644 383index ca805ac..47f25c2 100644
409--- a/libelf/libelfP.h 384--- a/libelf/libelfP.h
410+++ b/libelf/libelfP.h 385+++ b/libelf/libelfP.h
411@@ -32,6 +32,7 @@ 386@@ -32,6 +32,7 @@
@@ -417,7 +392,7 @@ index 7ee6625a..58408997 100644
417 #include <errno.h> 392 #include <errno.h>
418 #include <stdbool.h> 393 #include <stdbool.h>
419diff --git a/src/addr2line.c b/src/addr2line.c 394diff --git a/src/addr2line.c b/src/addr2line.c
420index 444ee52c..9596fa67 100644 395index 5acafa0..a4920b3 100644
421--- a/src/addr2line.c 396--- a/src/addr2line.c
422+++ b/src/addr2line.c 397+++ b/src/addr2line.c
423@@ -23,7 +23,7 @@ 398@@ -23,7 +23,7 @@
@@ -430,7 +405,7 @@ index 444ee52c..9596fa67 100644
430 #include <inttypes.h> 405 #include <inttypes.h>
431 #include <libdwfl.h> 406 #include <libdwfl.h>
432diff --git a/src/ar.c b/src/ar.c 407diff --git a/src/ar.c b/src/ar.c
433index ec32cee5..4efd729c 100644 408index 818115b..2166f1b 100644
434--- a/src/ar.c 409--- a/src/ar.c
435+++ b/src/ar.c 410+++ b/src/ar.c
436@@ -22,7 +22,7 @@ 411@@ -22,7 +22,7 @@
@@ -443,7 +418,7 @@ index ec32cee5..4efd729c 100644
443 #include <gelf.h> 418 #include <gelf.h>
444 #include <libintl.h> 419 #include <libintl.h>
445diff --git a/src/arlib.c b/src/arlib.c 420diff --git a/src/arlib.c b/src/arlib.c
446index e0839aab..1143658f 100644 421index e0839aa..1143658 100644
447--- a/src/arlib.c 422--- a/src/arlib.c
448+++ b/src/arlib.c 423+++ b/src/arlib.c
449@@ -21,7 +21,7 @@ 424@@ -21,7 +21,7 @@
@@ -456,7 +431,7 @@ index e0839aab..1143658f 100644
456 #include <inttypes.h> 431 #include <inttypes.h>
457 #include <libintl.h> 432 #include <libintl.h>
458diff --git a/src/arlib2.c b/src/arlib2.c 433diff --git a/src/arlib2.c b/src/arlib2.c
459index 553fc57b..46443d0e 100644 434index 553fc57..46443d0 100644
460--- a/src/arlib2.c 435--- a/src/arlib2.c
461+++ b/src/arlib2.c 436+++ b/src/arlib2.c
462@@ -20,7 +20,7 @@ 437@@ -20,7 +20,7 @@
@@ -469,7 +444,7 @@ index 553fc57b..46443d0e 100644
469 #include <limits.h> 444 #include <limits.h>
470 #include <string.h> 445 #include <string.h>
471diff --git a/src/elfcmp.c b/src/elfcmp.c 446diff --git a/src/elfcmp.c b/src/elfcmp.c
472index 50464207..cff183fa 100644 447index 5046420..cff183f 100644
473--- a/src/elfcmp.c 448--- a/src/elfcmp.c
474+++ b/src/elfcmp.c 449+++ b/src/elfcmp.c
475@@ -23,7 +23,7 @@ 450@@ -23,7 +23,7 @@
@@ -482,7 +457,7 @@ index 50464207..cff183fa 100644
482 #include <locale.h> 457 #include <locale.h>
483 #include <libintl.h> 458 #include <libintl.h>
484diff --git a/src/elflint.c b/src/elflint.c 459diff --git a/src/elflint.c b/src/elflint.c
485index df1b3a03..67d8d134 100644 460index 0a26d97..e45fb39 100644
486--- a/src/elflint.c 461--- a/src/elflint.c
487+++ b/src/elflint.c 462+++ b/src/elflint.c
488@@ -24,7 +24,7 @@ 463@@ -24,7 +24,7 @@
@@ -495,7 +470,7 @@ index df1b3a03..67d8d134 100644
495 #include <gelf.h> 470 #include <gelf.h>
496 #include <inttypes.h> 471 #include <inttypes.h>
497diff --git a/src/findtextrel.c b/src/findtextrel.c 472diff --git a/src/findtextrel.c b/src/findtextrel.c
498index 8f1e239a..71463af3 100644 473index 8f1e239..71463af 100644
499--- a/src/findtextrel.c 474--- a/src/findtextrel.c
500+++ b/src/findtextrel.c 475+++ b/src/findtextrel.c
501@@ -23,7 +23,7 @@ 476@@ -23,7 +23,7 @@
@@ -508,7 +483,7 @@ index 8f1e239a..71463af3 100644
508 #include <gelf.h> 483 #include <gelf.h>
509 #include <libdw.h> 484 #include <libdw.h>
510diff --git a/src/nm.c b/src/nm.c 485diff --git a/src/nm.c b/src/nm.c
511index 969c6d35..3113c04c 100644 486index 969c6d3..3113c04 100644
512--- a/src/nm.c 487--- a/src/nm.c
513+++ b/src/nm.c 488+++ b/src/nm.c
514@@ -26,7 +26,7 @@ 489@@ -26,7 +26,7 @@
@@ -521,7 +496,7 @@ index 969c6d35..3113c04c 100644
521 #include <gelf.h> 496 #include <gelf.h>
522 #include <inttypes.h> 497 #include <inttypes.h>
523diff --git a/src/objdump.c b/src/objdump.c 498diff --git a/src/objdump.c b/src/objdump.c
524index 0dd9a6aa..9c8bf149 100644 499index 0dd9a6a..9c8bf14 100644
525--- a/src/objdump.c 500--- a/src/objdump.c
526+++ b/src/objdump.c 501+++ b/src/objdump.c
527@@ -21,7 +21,7 @@ 502@@ -21,7 +21,7 @@
@@ -534,7 +509,7 @@ index 0dd9a6aa..9c8bf149 100644
534 #include <inttypes.h> 509 #include <inttypes.h>
535 #include <libintl.h> 510 #include <libintl.h>
536diff --git a/src/ranlib.c b/src/ranlib.c 511diff --git a/src/ranlib.c b/src/ranlib.c
537index cc0ee233..ae851e40 100644 512index cc0ee23..ae851e4 100644
538--- a/src/ranlib.c 513--- a/src/ranlib.c
539+++ b/src/ranlib.c 514+++ b/src/ranlib.c
540@@ -24,7 +24,7 @@ 515@@ -24,7 +24,7 @@
@@ -547,10 +522,10 @@ index cc0ee233..ae851e40 100644
547 #include <gelf.h> 522 #include <gelf.h>
548 #include <libintl.h> 523 #include <libintl.h>
549diff --git a/src/readelf.c b/src/readelf.c 524diff --git a/src/readelf.c b/src/readelf.c
550index 6a27e7e0..4759a965 100644 525index f185897..6623e93 100644
551--- a/src/readelf.c 526--- a/src/readelf.c
552+++ b/src/readelf.c 527+++ b/src/readelf.c
553@@ -25,7 +25,7 @@ 528@@ -24,7 +24,7 @@
554 #include <ctype.h> 529 #include <ctype.h>
555 #include <dwarf.h> 530 #include <dwarf.h>
556 #include <errno.h> 531 #include <errno.h>
@@ -560,7 +535,7 @@ index 6a27e7e0..4759a965 100644
560 #include <gelf.h> 535 #include <gelf.h>
561 #include <inttypes.h> 536 #include <inttypes.h>
562diff --git a/src/size.c b/src/size.c 537diff --git a/src/size.c b/src/size.c
563index ad8dbcbb..fd83be06 100644 538index ad8dbcb..fd83be0 100644
564--- a/src/size.c 539--- a/src/size.c
565+++ b/src/size.c 540+++ b/src/size.c
566@@ -21,7 +21,7 @@ 541@@ -21,7 +21,7 @@
@@ -573,7 +548,7 @@ index ad8dbcbb..fd83be06 100644
573 #include <gelf.h> 548 #include <gelf.h>
574 #include <inttypes.h> 549 #include <inttypes.h>
575diff --git a/src/stack.c b/src/stack.c 550diff --git a/src/stack.c b/src/stack.c
576index 6f2ff69f..6da0243d 100644 551index 52ae3a8..0fda285 100644
577--- a/src/stack.c 552--- a/src/stack.c
578+++ b/src/stack.c 553+++ b/src/stack.c
579@@ -18,7 +18,7 @@ 554@@ -18,7 +18,7 @@
@@ -586,7 +561,7 @@ index 6f2ff69f..6da0243d 100644
586 #include <inttypes.h> 561 #include <inttypes.h>
587 #include <stdio.h> 562 #include <stdio.h>
588diff --git a/src/strings.c b/src/strings.c 563diff --git a/src/strings.c b/src/strings.c
589index 03d0f133..5c311cbd 100644 564index 03d0f13..5c311cb 100644
590--- a/src/strings.c 565--- a/src/strings.c
591+++ b/src/strings.c 566+++ b/src/strings.c
592@@ -25,7 +25,7 @@ 567@@ -25,7 +25,7 @@
@@ -599,7 +574,7 @@ index 03d0f133..5c311cbd 100644
599 #include <gelf.h> 574 #include <gelf.h>
600 #include <inttypes.h> 575 #include <inttypes.h>
601diff --git a/src/strip.c b/src/strip.c 576diff --git a/src/strip.c b/src/strip.c
602index c7830ec6..0d7f148d 100644 577index 773ed54..ff05f46 100644
603--- a/src/strip.c 578--- a/src/strip.c
604+++ b/src/strip.c 579+++ b/src/strip.c
605@@ -24,7 +24,7 @@ 580@@ -24,7 +24,7 @@
@@ -612,7 +587,7 @@ index c7830ec6..0d7f148d 100644
612 #include <fnmatch.h> 587 #include <fnmatch.h>
613 #include <gelf.h> 588 #include <gelf.h>
614diff --git a/src/unstrip.c b/src/unstrip.c 589diff --git a/src/unstrip.c b/src/unstrip.c
615index 50749093..3d4f9525 100644 590index f368e69..5ca83d0 100644
616--- a/src/unstrip.c 591--- a/src/unstrip.c
617+++ b/src/unstrip.c 592+++ b/src/unstrip.c
618@@ -31,7 +31,7 @@ 593@@ -31,7 +31,7 @@
@@ -625,7 +600,7 @@ index 50749093..3d4f9525 100644
625 #include <fnmatch.h> 600 #include <fnmatch.h>
626 #include <libintl.h> 601 #include <libintl.h>
627diff --git a/tests/addrscopes.c b/tests/addrscopes.c 602diff --git a/tests/addrscopes.c b/tests/addrscopes.c
628index 791569f5..54f4311b 100644 603index 791569f..54f4311 100644
629--- a/tests/addrscopes.c 604--- a/tests/addrscopes.c
630+++ b/tests/addrscopes.c 605+++ b/tests/addrscopes.c
631@@ -25,7 +25,7 @@ 606@@ -25,7 +25,7 @@
@@ -638,7 +613,7 @@ index 791569f5..54f4311b 100644
638 613
639 614
640diff --git a/tests/allregs.c b/tests/allregs.c 615diff --git a/tests/allregs.c b/tests/allregs.c
641index 286f7e3c..c9de0897 100644 616index 286f7e3..c9de089 100644
642--- a/tests/allregs.c 617--- a/tests/allregs.c
643+++ b/tests/allregs.c 618+++ b/tests/allregs.c
644@@ -21,7 +21,7 @@ 619@@ -21,7 +21,7 @@
@@ -651,7 +626,7 @@ index 286f7e3c..c9de0897 100644
651 #include <argp.h> 626 #include <argp.h>
652 #include <assert.h> 627 #include <assert.h>
653diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c 628diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c
654index a387d8ff..955c27d1 100644 629index a387d8f..955c27d 100644
655--- a/tests/backtrace-data.c 630--- a/tests/backtrace-data.c
656+++ b/tests/backtrace-data.c 631+++ b/tests/backtrace-data.c
657@@ -27,7 +27,7 @@ 632@@ -27,7 +27,7 @@
@@ -664,10 +639,10 @@ index a387d8ff..955c27d1 100644
664 #include <dwarf.h> 639 #include <dwarf.h>
665 #if defined(__x86_64__) && defined(__linux__) 640 #if defined(__x86_64__) && defined(__linux__)
666diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c 641diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c
667index 2dc8a9a2..24ca7fb0 100644 642index 7ff826c..246650b 100644
668--- a/tests/backtrace-dwarf.c 643--- a/tests/backtrace-dwarf.c
669+++ b/tests/backtrace-dwarf.c 644+++ b/tests/backtrace-dwarf.c
670@@ -22,7 +22,7 @@ 645@@ -21,7 +21,7 @@
671 #include <stdio_ext.h> 646 #include <stdio_ext.h>
672 #include <locale.h> 647 #include <locale.h>
673 #include <errno.h> 648 #include <errno.h>
@@ -675,9 +650,9 @@ index 2dc8a9a2..24ca7fb0 100644
675+#include <err.h> 650+#include <err.h>
676 #include <unistd.h> 651 #include <unistd.h>
677 #include <sys/types.h> 652 #include <sys/types.h>
678 #include <sys/wait.h> 653 #include ELFUTILS_HEADER(dwfl)
679diff --git a/tests/backtrace.c b/tests/backtrace.c 654diff --git a/tests/backtrace.c b/tests/backtrace.c
680index f5dd761f..a93a8f03 100644 655index f5dd761..a93a8f0 100644
681--- a/tests/backtrace.c 656--- a/tests/backtrace.c
682+++ b/tests/backtrace.c 657+++ b/tests/backtrace.c
683@@ -24,7 +24,7 @@ 658@@ -24,7 +24,7 @@
@@ -690,7 +665,7 @@ index f5dd761f..a93a8f03 100644
690 #include <dwarf.h> 665 #include <dwarf.h>
691 #ifdef __linux__ 666 #ifdef __linux__
692diff --git a/tests/buildid.c b/tests/buildid.c 667diff --git a/tests/buildid.c b/tests/buildid.c
693index 87c18773..2953e6bb 100644 668index 87c1877..2953e6b 100644
694--- a/tests/buildid.c 669--- a/tests/buildid.c
695+++ b/tests/buildid.c 670+++ b/tests/buildid.c
696@@ -23,7 +23,7 @@ 671@@ -23,7 +23,7 @@
@@ -703,7 +678,7 @@ index 87c18773..2953e6bb 100644
703 #include <stdlib.h> 678 #include <stdlib.h>
704 #include <sys/types.h> 679 #include <sys/types.h>
705diff --git a/tests/debugaltlink.c b/tests/debugaltlink.c 680diff --git a/tests/debugaltlink.c b/tests/debugaltlink.c
706index 6d97d500..ee7e559e 100644 681index 6d97d50..ee7e559 100644
707--- a/tests/debugaltlink.c 682--- a/tests/debugaltlink.c
708+++ b/tests/debugaltlink.c 683+++ b/tests/debugaltlink.c
709@@ -23,7 +23,7 @@ 684@@ -23,7 +23,7 @@
@@ -716,7 +691,7 @@ index 6d97d500..ee7e559e 100644
716 #include <stdlib.h> 691 #include <stdlib.h>
717 #include <sys/types.h> 692 #include <sys/types.h>
718diff --git a/tests/debuglink.c b/tests/debuglink.c 693diff --git a/tests/debuglink.c b/tests/debuglink.c
719index 935d1029..741cb814 100644 694index 935d102..741cb81 100644
720--- a/tests/debuglink.c 695--- a/tests/debuglink.c
721+++ b/tests/debuglink.c 696+++ b/tests/debuglink.c
722@@ -21,7 +21,7 @@ 697@@ -21,7 +21,7 @@
@@ -729,7 +704,7 @@ index 935d1029..741cb814 100644
729 #include <stdlib.h> 704 #include <stdlib.h>
730 #include <sys/types.h> 705 #include <sys/types.h>
731diff --git a/tests/deleted.c b/tests/deleted.c 706diff --git a/tests/deleted.c b/tests/deleted.c
732index 6be35bc2..01907113 100644 707index 6be35bc..0190711 100644
733--- a/tests/deleted.c 708--- a/tests/deleted.c
734+++ b/tests/deleted.c 709+++ b/tests/deleted.c
735@@ -21,7 +21,7 @@ 710@@ -21,7 +21,7 @@
@@ -742,7 +717,7 @@ index 6be35bc2..01907113 100644
742 #ifdef __linux__ 717 #ifdef __linux__
743 #include <sys/prctl.h> 718 #include <sys/prctl.h>
744diff --git a/tests/dwfl-addr-sect.c b/tests/dwfl-addr-sect.c 719diff --git a/tests/dwfl-addr-sect.c b/tests/dwfl-addr-sect.c
745index 21e470a3..1ea1e3b2 100644 720index 21e470a..1ea1e3b 100644
746--- a/tests/dwfl-addr-sect.c 721--- a/tests/dwfl-addr-sect.c
747+++ b/tests/dwfl-addr-sect.c 722+++ b/tests/dwfl-addr-sect.c
748@@ -23,7 +23,7 @@ 723@@ -23,7 +23,7 @@
@@ -755,7 +730,7 @@ index 21e470a3..1ea1e3b2 100644
755 #include <argp.h> 730 #include <argp.h>
756 #include ELFUTILS_HEADER(dwfl) 731 #include ELFUTILS_HEADER(dwfl)
757diff --git a/tests/dwfl-bug-addr-overflow.c b/tests/dwfl-bug-addr-overflow.c 732diff --git a/tests/dwfl-bug-addr-overflow.c b/tests/dwfl-bug-addr-overflow.c
758index aa8030e1..02c8bef9 100644 733index aa8030e..02c8bef 100644
759--- a/tests/dwfl-bug-addr-overflow.c 734--- a/tests/dwfl-bug-addr-overflow.c
760+++ b/tests/dwfl-bug-addr-overflow.c 735+++ b/tests/dwfl-bug-addr-overflow.c
761@@ -20,7 +20,7 @@ 736@@ -20,7 +20,7 @@
@@ -768,7 +743,7 @@ index aa8030e1..02c8bef9 100644
768 #include ELFUTILS_HEADER(dwfl) 743 #include ELFUTILS_HEADER(dwfl)
769 744
770diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c 745diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c
771index 689cdd79..5973da39 100644 746index 689cdd7..5973da3 100644
772--- a/tests/dwfl-bug-fd-leak.c 747--- a/tests/dwfl-bug-fd-leak.c
773+++ b/tests/dwfl-bug-fd-leak.c 748+++ b/tests/dwfl-bug-fd-leak.c
774@@ -24,7 +24,7 @@ 749@@ -24,7 +24,7 @@
@@ -781,7 +756,7 @@ index 689cdd79..5973da39 100644
781 #include <dwarf.h> 756 #include <dwarf.h>
782 757
783diff --git a/tests/dwfl-bug-getmodules.c b/tests/dwfl-bug-getmodules.c 758diff --git a/tests/dwfl-bug-getmodules.c b/tests/dwfl-bug-getmodules.c
784index 1ee989f8..fd62e653 100644 759index 1ee989f..fd62e65 100644
785--- a/tests/dwfl-bug-getmodules.c 760--- a/tests/dwfl-bug-getmodules.c
786+++ b/tests/dwfl-bug-getmodules.c 761+++ b/tests/dwfl-bug-getmodules.c
787@@ -18,7 +18,7 @@ 762@@ -18,7 +18,7 @@
@@ -794,7 +769,7 @@ index 1ee989f8..fd62e653 100644
794 static const Dwfl_Callbacks callbacks = 769 static const Dwfl_Callbacks callbacks =
795 { 770 {
796diff --git a/tests/dwfl-report-elf-align.c b/tests/dwfl-report-elf-align.c 771diff --git a/tests/dwfl-report-elf-align.c b/tests/dwfl-report-elf-align.c
797index a4e97d3c..f471587c 100644 772index a4e97d3..f471587 100644
798--- a/tests/dwfl-report-elf-align.c 773--- a/tests/dwfl-report-elf-align.c
799+++ b/tests/dwfl-report-elf-align.c 774+++ b/tests/dwfl-report-elf-align.c
800@@ -20,7 +20,7 @@ 775@@ -20,7 +20,7 @@
@@ -807,7 +782,7 @@ index a4e97d3c..f471587c 100644
807 #include <string.h> 782 #include <string.h>
808 #include <stdlib.h> 783 #include <stdlib.h>
809diff --git a/tests/dwfllines.c b/tests/dwfllines.c 784diff --git a/tests/dwfllines.c b/tests/dwfllines.c
810index 90379dd2..cbdf6c4c 100644 785index 90379dd..cbdf6c4 100644
811--- a/tests/dwfllines.c 786--- a/tests/dwfllines.c
812+++ b/tests/dwfllines.c 787+++ b/tests/dwfllines.c
813@@ -27,7 +27,7 @@ 788@@ -27,7 +27,7 @@
@@ -820,7 +795,7 @@ index 90379dd2..cbdf6c4c 100644
820 int 795 int
821 main (int argc, char *argv[]) 796 main (int argc, char *argv[])
822diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c 797diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c
823index 0027f96b..e68d3bca 100644 798index 0027f96..e68d3bc 100644
824--- a/tests/dwflmodtest.c 799--- a/tests/dwflmodtest.c
825+++ b/tests/dwflmodtest.c 800+++ b/tests/dwflmodtest.c
826@@ -23,7 +23,7 @@ 801@@ -23,7 +23,7 @@
@@ -833,7 +808,7 @@ index 0027f96b..e68d3bca 100644
833 #include <argp.h> 808 #include <argp.h>
834 #include ELFUTILS_HEADER(dwfl) 809 #include ELFUTILS_HEADER(dwfl)
835diff --git a/tests/dwflsyms.c b/tests/dwflsyms.c 810diff --git a/tests/dwflsyms.c b/tests/dwflsyms.c
836index 49ac3346..cf078301 100644 811index 49ac334..cf07830 100644
837--- a/tests/dwflsyms.c 812--- a/tests/dwflsyms.c
838+++ b/tests/dwflsyms.c 813+++ b/tests/dwflsyms.c
839@@ -25,7 +25,7 @@ 814@@ -25,7 +25,7 @@
@@ -846,7 +821,7 @@ index 49ac3346..cf078301 100644
846 821
847 static const char * 822 static const char *
848diff --git a/tests/early-offscn.c b/tests/early-offscn.c 823diff --git a/tests/early-offscn.c b/tests/early-offscn.c
849index 924cb9ef..6f60d5a3 100644 824index 924cb9e..6f60d5a 100644
850--- a/tests/early-offscn.c 825--- a/tests/early-offscn.c
851+++ b/tests/early-offscn.c 826+++ b/tests/early-offscn.c
852@@ -19,7 +19,7 @@ 827@@ -19,7 +19,7 @@
@@ -859,7 +834,7 @@ index 924cb9ef..6f60d5a3 100644
859 #include <gelf.h> 834 #include <gelf.h>
860 #include <stdio.h> 835 #include <stdio.h>
861diff --git a/tests/ecp.c b/tests/ecp.c 836diff --git a/tests/ecp.c b/tests/ecp.c
862index 38a6859e..743cea5d 100644 837index 38a6859..743cea5 100644
863--- a/tests/ecp.c 838--- a/tests/ecp.c
864+++ b/tests/ecp.c 839+++ b/tests/ecp.c
865@@ -20,7 +20,7 @@ 840@@ -20,7 +20,7 @@
@@ -872,7 +847,7 @@ index 38a6859e..743cea5d 100644
872 #include <gelf.h> 847 #include <gelf.h>
873 #include <stdlib.h> 848 #include <stdlib.h>
874diff --git a/tests/find-prologues.c b/tests/find-prologues.c 849diff --git a/tests/find-prologues.c b/tests/find-prologues.c
875index ba8ae371..76f5f047 100644 850index ba8ae37..76f5f04 100644
876--- a/tests/find-prologues.c 851--- a/tests/find-prologues.c
877+++ b/tests/find-prologues.c 852+++ b/tests/find-prologues.c
878@@ -25,7 +25,7 @@ 853@@ -25,7 +25,7 @@
@@ -885,7 +860,7 @@ index ba8ae371..76f5f047 100644
885 #include <fnmatch.h> 860 #include <fnmatch.h>
886 861
887diff --git a/tests/funcretval.c b/tests/funcretval.c 862diff --git a/tests/funcretval.c b/tests/funcretval.c
888index 8d19d117..c8aaa93d 100644 863index 8d19d11..c8aaa93 100644
889--- a/tests/funcretval.c 864--- a/tests/funcretval.c
890+++ b/tests/funcretval.c 865+++ b/tests/funcretval.c
891@@ -25,7 +25,7 @@ 866@@ -25,7 +25,7 @@
@@ -898,7 +873,7 @@ index 8d19d117..c8aaa93d 100644
898 #include <fnmatch.h> 873 #include <fnmatch.h>
899 874
900diff --git a/tests/funcscopes.c b/tests/funcscopes.c 875diff --git a/tests/funcscopes.c b/tests/funcscopes.c
901index 9c901858..dbccb89e 100644 876index 9c90185..dbccb89 100644
902--- a/tests/funcscopes.c 877--- a/tests/funcscopes.c
903+++ b/tests/funcscopes.c 878+++ b/tests/funcscopes.c
904@@ -25,7 +25,7 @@ 879@@ -25,7 +25,7 @@
@@ -911,7 +886,7 @@ index 9c901858..dbccb89e 100644
911 #include <fnmatch.h> 886 #include <fnmatch.h>
912 887
913diff --git a/tests/getsrc_die.c b/tests/getsrc_die.c 888diff --git a/tests/getsrc_die.c b/tests/getsrc_die.c
914index 055aede0..9c394dd0 100644 889index 055aede..9c394dd 100644
915--- a/tests/getsrc_die.c 890--- a/tests/getsrc_die.c
916+++ b/tests/getsrc_die.c 891+++ b/tests/getsrc_die.c
917@@ -19,7 +19,7 @@ 892@@ -19,7 +19,7 @@
@@ -924,7 +899,7 @@ index 055aede0..9c394dd0 100644
924 #include <inttypes.h> 899 #include <inttypes.h>
925 #include <libelf.h> 900 #include <libelf.h>
926diff --git a/tests/line2addr.c b/tests/line2addr.c 901diff --git a/tests/line2addr.c b/tests/line2addr.c
927index e0d65d3d..9bf0023b 100644 902index e0d65d3..9bf0023 100644
928--- a/tests/line2addr.c 903--- a/tests/line2addr.c
929+++ b/tests/line2addr.c 904+++ b/tests/line2addr.c
930@@ -26,7 +26,7 @@ 905@@ -26,7 +26,7 @@
@@ -937,7 +912,7 @@ index e0d65d3d..9bf0023b 100644
937 912
938 static void 913 static void
939diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c 914diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c
940index d0f43023..8da4fbdf 100644 915index 5c6b343..fa0c158 100644
941--- a/tests/low_high_pc.c 916--- a/tests/low_high_pc.c
942+++ b/tests/low_high_pc.c 917+++ b/tests/low_high_pc.c
943@@ -25,7 +25,7 @@ 918@@ -25,7 +25,7 @@
@@ -949,21 +924,8 @@ index d0f43023..8da4fbdf 100644
949 #include <string.h> 924 #include <string.h>
950 #include <fnmatch.h> 925 #include <fnmatch.h>
951 926
952diff --git a/tests/md5-sha1-test.c b/tests/md5-sha1-test.c
953index d50355e9..3c41f40b 100644
954--- a/tests/md5-sha1-test.c
955+++ b/tests/md5-sha1-test.c
956@@ -19,7 +19,7 @@
957 #endif
958
959 #include <string.h>
960-#include <error.h>
961+#include <err.h>
962
963 #include "md5.h"
964 #include "sha1.h"
965diff --git a/tests/rdwrmmap.c b/tests/rdwrmmap.c 927diff --git a/tests/rdwrmmap.c b/tests/rdwrmmap.c
966index 6f027dfe..1ce5e6ed 100644 928index 6f027df..1ce5e6e 100644
967--- a/tests/rdwrmmap.c 929--- a/tests/rdwrmmap.c
968+++ b/tests/rdwrmmap.c 930+++ b/tests/rdwrmmap.c
969@@ -19,7 +19,7 @@ 931@@ -19,7 +19,7 @@
@@ -976,7 +938,7 @@ index 6f027dfe..1ce5e6ed 100644
976 #include <fcntl.h> 938 #include <fcntl.h>
977 #include <unistd.h> 939 #include <unistd.h>
978diff --git a/tests/saridx.c b/tests/saridx.c 940diff --git a/tests/saridx.c b/tests/saridx.c
979index 8a450d82..b3878013 100644 941index 8a450d8..b387801 100644
980--- a/tests/saridx.c 942--- a/tests/saridx.c
981+++ b/tests/saridx.c 943+++ b/tests/saridx.c
982@@ -17,7 +17,7 @@ 944@@ -17,7 +17,7 @@
@@ -989,7 +951,7 @@ index 8a450d82..b3878013 100644
989 #include <gelf.h> 951 #include <gelf.h>
990 #include <stdio.h> 952 #include <stdio.h>
991diff --git a/tests/sectiondump.c b/tests/sectiondump.c 953diff --git a/tests/sectiondump.c b/tests/sectiondump.c
992index 3033fedc..8e888db3 100644 954index 3033fed..8e888db 100644
993--- a/tests/sectiondump.c 955--- a/tests/sectiondump.c
994+++ b/tests/sectiondump.c 956+++ b/tests/sectiondump.c
995@@ -18,7 +18,7 @@ 957@@ -18,7 +18,7 @@
@@ -1002,7 +964,7 @@ index 3033fedc..8e888db3 100644
1002 #include <gelf.h> 964 #include <gelf.h>
1003 #include <inttypes.h> 965 #include <inttypes.h>
1004diff --git a/tests/varlocs.c b/tests/varlocs.c 966diff --git a/tests/varlocs.c b/tests/varlocs.c
1005index c3fba89e..e043ea2c 100644 967index f4a711c..1d89a61 100644
1006--- a/tests/varlocs.c 968--- a/tests/varlocs.c
1007+++ b/tests/varlocs.c 969+++ b/tests/varlocs.c
1008@@ -25,7 +25,7 @@ 970@@ -25,7 +25,7 @@
@@ -1015,7 +977,7 @@ index c3fba89e..e043ea2c 100644
1015 #include <sys/types.h> 977 #include <sys/types.h>
1016 #include <sys/stat.h> 978 #include <sys/stat.h>
1017diff --git a/tests/vdsosyms.c b/tests/vdsosyms.c 979diff --git a/tests/vdsosyms.c b/tests/vdsosyms.c
1018index b876c10b..afb28232 100644 980index b876c10..afb2823 100644
1019--- a/tests/vdsosyms.c 981--- a/tests/vdsosyms.c
1020+++ b/tests/vdsosyms.c 982+++ b/tests/vdsosyms.c
1021@@ -18,7 +18,7 @@ 983@@ -18,7 +18,7 @@
@@ -1027,3 +989,6 @@ index b876c10b..afb28232 100644
1027 #include <inttypes.h> 989 #include <inttypes.h>
1028 #include <stdio.h> 990 #include <stdio.h>
1029 #include <string.h> 991 #include <string.h>
992--
9932.7.4
994