123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788 |
- --- a/lib/system.h
- +++ b/lib/system.h
- @@ -68,6 +68,16 @@ extern int crc32_file (int fd, uint32_t
-
- #define gettext_noop(Str) Str
-
- +#ifndef TEMP_FAILURE_RETRY
- +#define TEMP_FAILURE_RETRY(expression) \
- + (__extension__ \
- + ({ long int __result; \
- + do __result = (long int) (expression); \
- + while (__result == -1L && errno == EINTR); \
- + __result; }))
- +#endif
- +
- +#define error(status, errno, ...) err(status, __VA_ARGS__)
-
- static inline ssize_t __attribute__ ((unused))
- pwrite_retry (int fd, const void *buf, size_t len, off_t off)
- --- a/lib/color.c
- +++ b/lib/color.c
- @@ -32,7 +32,7 @@
- #endif
-
- #include <argp.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stdlib.h>
- #include <string.h>
- --- a/lib/xmalloc.c
- +++ b/lib/xmalloc.c
- @@ -30,7 +30,7 @@
- # include <config.h>
- #endif
-
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stddef.h>
- #include <stdlib.h>
- --- a/src/addr2line.c
- +++ b/src/addr2line.c
- @@ -23,7 +23,7 @@
- #include <argp.h>
- #include <assert.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <inttypes.h>
- #include <libdwfl.h>
- --- a/src/ar.c
- +++ b/src/ar.c
- @@ -22,7 +22,7 @@
-
- #include <argp.h>
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <libintl.h>
- --- a/src/arlib2.c
- +++ b/src/arlib2.c
- @@ -20,7 +20,7 @@
- # include <config.h>
- #endif
-
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <limits.h>
- #include <string.h>
- --- a/src/arlib.c
- +++ b/src/arlib.c
- @@ -21,7 +21,7 @@
- #endif
-
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <gelf.h>
- #include <libintl.h>
- #include <stdio.h>
- --- a/src/elfcmp.c
- +++ b/src/elfcmp.c
- @@ -23,7 +23,7 @@
- #include <argp.h>
- #include <assert.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <locale.h>
- #include <libintl.h>
- --- a/src/elflint.c
- +++ b/src/elflint.c
- @@ -24,7 +24,7 @@
- #include <assert.h>
- #include <byteswap.h>
- #include <endian.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/src/findtextrel.c
- +++ b/src/findtextrel.c
- @@ -23,7 +23,7 @@
- #include <argp.h>
- #include <assert.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <libdw.h>
- --- a/src/i386_ld.c
- +++ b/src/i386_ld.c
- @@ -20,7 +20,7 @@
- #endif
-
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stdlib.h>
- #include <string.h>
- --- a/src/ld.c
- +++ b/src/ld.c
- @@ -21,7 +21,7 @@
-
- #include <argp.h>
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <libelf.h>
- #include <libintl.h>
- --- a/src/ldgeneric.c
- +++ b/src/ldgeneric.c
- @@ -23,7 +23,7 @@
- #include <ctype.h>
- #include <dlfcn.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <fnmatch.h>
- #include <gelf.h>
- --- a/src/ldlex.c
- +++ b/src/ldlex.c
- @@ -1106,7 +1106,7 @@ char *ldtext;
- #include <assert.h>
- #include <ctype.h>
- #include <elf.h>
- -#include <error.h>
- +#include <err.h>
- #include <inttypes.h>
- #include <libintl.h>
- #include <stdbool.h>
- --- a/src/ldscript.c
- +++ b/src/ldscript.c
- @@ -95,7 +95,7 @@
- #endif
-
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stdbool.h>
- #include <stdint.h>
- @@ -106,7 +106,7 @@
- #include <system.h>
- #include <ld.h>
-
- -/* The error handler. */
- +/* The err.handler. */
- static void yyerror (const char *s);
-
- /* Some helper functions we need to construct the data structures
- --- a/src/nm.c
- +++ b/src/nm.c
- @@ -26,7 +26,7 @@
- #include <ctype.h>
- #include <dwarf.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/src/objdump.c
- +++ b/src/objdump.c
- @@ -21,7 +21,7 @@
- #endif
-
- #include <argp.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <inttypes.h>
- #include <libintl.h>
- --- a/src/ranlib.c
- +++ b/src/ranlib.c
- @@ -24,7 +24,7 @@
- #include <argp.h>
- #include <assert.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <libintl.h>
- --- a/src/readelf.c
- +++ b/src/readelf.c
- @@ -25,7 +25,7 @@
- #include <ctype.h>
- #include <dwarf.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/src/size.c
- +++ b/src/size.c
- @@ -21,7 +21,7 @@
- #endif
-
- #include <argp.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/src/stack.c
- +++ b/src/stack.c
- @@ -18,7 +18,7 @@
- #include <config.h>
- #include <assert.h>
- #include <argp.h>
- -#include <error.h>
- +#include <err.h>
- #include <stdlib.h>
- #include <inttypes.h>
- #include <stdio.h>
- --- a/src/strings.c
- +++ b/src/strings.c
- @@ -25,7 +25,7 @@
- #include <ctype.h>
- #include <endian.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/src/strip.c
- +++ b/src/strip.c
- @@ -24,7 +24,7 @@
- #include <assert.h>
- #include <byteswap.h>
- #include <endian.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <libelf.h>
- --- a/src/unstrip.c
- +++ b/src/unstrip.c
- @@ -31,7 +31,7 @@
- #include <argp.h>
- #include <assert.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <fnmatch.h>
- #include <libintl.h>
- --- a/tests/addrscopes.c
- +++ b/tests/addrscopes.c
- @@ -25,7 +25,7 @@
- #include <stdio_ext.h>
- #include <locale.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
-
-
- --- a/tests/allregs.c
- +++ b/tests/allregs.c
- @@ -21,7 +21,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
- #include <locale.h>
- #include <argp.h>
- #include <assert.h>
- --- a/tests/backtrace.c
- +++ b/tests/backtrace.c
- @@ -24,7 +24,7 @@
- #include <dirent.h>
- #include <stdlib.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <unistd.h>
- #include <dwarf.h>
- #ifdef __linux__
- --- a/tests/backtrace-data.c
- +++ b/tests/backtrace-data.c
- @@ -27,7 +27,7 @@
- #include <dirent.h>
- #include <stdlib.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <unistd.h>
- #include <dwarf.h>
- #if defined(__x86_64__) && defined(__linux__)
- --- a/tests/buildid.c
- +++ b/tests/buildid.c
- @@ -23,7 +23,7 @@
- #include ELFUTILS_HEADER(elf)
- #include ELFUTILS_HEADER(dwelf)
- #include <stdio.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <stdlib.h>
- #include <sys/types.h>
- --- a/tests/debugaltlink.c
- +++ b/tests/debugaltlink.c
- @@ -23,7 +23,7 @@
- #include ELFUTILS_HEADER(dw)
- #include ELFUTILS_HEADER(dwelf)
- #include <stdio.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <stdlib.h>
- #include <sys/types.h>
- --- a/tests/debuglink.c
- +++ b/tests/debuglink.c
- @@ -21,7 +21,7 @@
- #include <errno.h>
- #include ELFUTILS_HEADER(dwelf)
- #include <stdio.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <stdlib.h>
- #include <sys/types.h>
- --- a/tests/dwfl-addr-sect.c
- +++ b/tests/dwfl-addr-sect.c
- @@ -23,7 +23,7 @@
- #include <stdio_ext.h>
- #include <stdlib.h>
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
- #include <locale.h>
- #include <argp.h>
- #include ELFUTILS_HEADER(dwfl)
- --- a/tests/dwfl-bug-addr-overflow.c
- +++ b/tests/dwfl-bug-addr-overflow.c
- @@ -20,7 +20,7 @@
- #include <inttypes.h>
- #include <stdio.h>
- #include <stdio_ext.h>
- -#include <error.h>
- +#include <err.h>
- #include <locale.h>
- #include ELFUTILS_HEADER(dwfl)
-
- --- a/tests/dwfl-bug-fd-leak.c
- +++ b/tests/dwfl-bug-fd-leak.c
- @@ -24,7 +24,7 @@
- #include <dirent.h>
- #include <stdlib.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <unistd.h>
- #include <dwarf.h>
- #include <sys/resource.h>
- --- a/tests/dwfl-bug-getmodules.c
- +++ b/tests/dwfl-bug-getmodules.c
- @@ -18,7 +18,7 @@
- #include <config.h>
- #include ELFUTILS_HEADER(dwfl)
-
- -#include <error.h>
- +#include <err.h>
-
- static const Dwfl_Callbacks callbacks =
- {
- --- a/tests/dwfllines.c
- +++ b/tests/dwfllines.c
- @@ -27,7 +27,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
-
- int
- main (int argc, char *argv[])
- --- a/tests/dwflmodtest.c
- +++ b/tests/dwflmodtest.c
- @@ -23,7 +23,7 @@
- #include <stdio_ext.h>
- #include <stdlib.h>
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
- #include <locale.h>
- #include <argp.h>
- #include ELFUTILS_HEADER(dwfl)
- --- a/tests/dwfl-report-elf-align.c
- +++ b/tests/dwfl-report-elf-align.c
- @@ -20,7 +20,7 @@
- #include <inttypes.h>
- #include <stdio.h>
- #include <stdio_ext.h>
- -#include <error.h>
- +#include <err.h>
- #include <locale.h>
- #include <string.h>
- #include <stdlib.h>
- --- a/tests/dwflsyms.c
- +++ b/tests/dwflsyms.c
- @@ -25,7 +25,7 @@
- #include <stdio.h>
- #include <stdio_ext.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
-
- static const char *
- --- a/tests/early-offscn.c
- +++ b/tests/early-offscn.c
- @@ -19,7 +19,7 @@
- #endif
-
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <stdio.h>
- --- a/tests/ecp.c
- +++ b/tests/ecp.c
- @@ -20,7 +20,7 @@
- #endif
-
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <stdlib.h>
- --- a/tests/find-prologues.c
- +++ b/tests/find-prologues.c
- @@ -25,7 +25,7 @@
- #include <stdio_ext.h>
- #include <locale.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <fnmatch.h>
-
- --- a/tests/funcretval.c
- +++ b/tests/funcretval.c
- @@ -25,7 +25,7 @@
- #include <stdio_ext.h>
- #include <locale.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <fnmatch.h>
-
- --- a/tests/funcscopes.c
- +++ b/tests/funcscopes.c
- @@ -25,7 +25,7 @@
- #include <stdio_ext.h>
- #include <locale.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <fnmatch.h>
-
- --- a/tests/line2addr.c
- +++ b/tests/line2addr.c
- @@ -26,7 +26,7 @@
- #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
-
-
- static void
- --- a/tests/low_high_pc.c
- +++ b/tests/low_high_pc.c
- @@ -25,7 +25,7 @@
- #include <stdio_ext.h>
- #include <locale.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <fnmatch.h>
-
- --- a/tests/md5-sha1-test.c
- +++ b/tests/md5-sha1-test.c
- @@ -19,7 +19,7 @@
- #endif
-
- #include <string.h>
- -#include <error.h>
- +#include <err.h>
-
- #include "md5.h"
- #include "sha1.h"
- --- a/tests/rdwrmmap.c
- +++ b/tests/rdwrmmap.c
- @@ -19,7 +19,7 @@
- #endif
-
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <stdio.h>
- #include <fcntl.h>
- #include <unistd.h>
- --- a/tests/saridx.c
- +++ b/tests/saridx.c
- @@ -17,7 +17,7 @@
-
- #include <config.h>
-
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <stdio.h>
- --- a/tests/sectiondump.c
- +++ b/tests/sectiondump.c
- @@ -18,7 +18,7 @@
- #include <config.h>
-
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <fcntl.h>
- #include <gelf.h>
- #include <inttypes.h>
- --- a/tests/varlocs.c
- +++ b/tests/varlocs.c
- @@ -25,7 +25,7 @@
- #include <dwarf.h>
- #include <stdio.h>
- #include <stdlib.h>
- -#include <error.h>
- +#include <err.h>
- #include <string.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- --- a/libelf/libelf.h
- +++ b/libelf/libelf.h
- @@ -29,6 +29,7 @@
- #ifndef _LIBELF_H
- #define _LIBELF_H 1
-
- +#include <fcntl.h>
- #include <stdint.h>
- #include <sys/types.h>
-
- --- a/libasm/asm_end.c
- +++ b/libasm/asm_end.c
- @@ -32,7 +32,7 @@
- #endif
-
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stdio.h>
- #include <stdlib.h>
- --- a/libasm/asm_newscn.c
- +++ b/libasm/asm_newscn.c
- @@ -32,7 +32,7 @@
- #endif
-
- #include <assert.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
- #include <stdlib.h>
- #include <string.h>
- --- a/libcpu/i386_gendis.c
- +++ b/libcpu/i386_gendis.c
- @@ -31,7 +31,7 @@
- # include <config.h>
- #endif
-
- -#include <error.h>
- +#include <err.h>
- #include <errno.h>
- #include <stdio.h>
- #include <stdlib.h>
- --- a/libcpu/i386_lex.c
- +++ b/libcpu/i386_lex.c
- @@ -578,7 +578,7 @@ char *i386_text;
- #endif
-
- #include <ctype.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
-
- #include <system.h>
- --- a/libcpu/i386_lex.l
- +++ b/libcpu/i386_lex.l
- @@ -31,7 +31,7 @@
- #endif
-
- #include <ctype.h>
- -#include <error.h>
- +#include <err.h>
- #include <libintl.h>
-
- #include <system.h>
- --- a/libcpu/i386_parse.c
- +++ b/libcpu/i386_parse.c
- @@ -107,7 +107,7 @@
- #include <assert.h>
- #include <ctype.h>
- #include <errno.h>
- -#include <error.h>
- +#include <err.h>
- #include <inttypes.h>
- #include <libintl.h>
- #include <math.h>
- --- a/libdw/libdw_alloc.c
- +++ b/libdw/libdw_alloc.c
- @@ -31,7 +31,7 @@
- # include <config.h>
- #endif
-
- -#include <error.h>
- +#include <err.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <sys/param.h>
- @@ -74,5 +74,5 @@ __attribute ((noreturn, visibility ("hid
- __libdw_oom (void)
- {
- while (1)
- - error (EXIT_FAILURE, ENOMEM, "libdw");
- + err (EXIT_FAILURE, "libdw: out of memory");
- }
- --- a/libebl/eblopenbackend.c
- +++ b/libebl/eblopenbackend.c
- @@ -32,7 +32,7 @@
-
- #include <assert.h>
- #include <dlfcn.h>
- -#include <error.h>
- +#include <err.h>
- #include <libelfP.h>
- #include <dwarf.h>
- #include <stdlib.h>
- --- a/src/ldlex.l
- +++ b/src/ldlex.l
- @@ -23,7 +23,7 @@
- #include <assert.h>
- #include <ctype.h>
- #include <elf.h>
- -#include <error.h>
- +#include <err.h>
- #include <inttypes.h>
- #include <libintl.h>
- #include <stdbool.h>
- --- a/libebl/eblwstrtab.c
- +++ b/libebl/eblwstrtab.c
- @@ -305,7 +305,7 @@ copystrings (struct Ebl_WStrent *nodep,
-
- /* Process the current node. */
- nodep->offset = *offsetp;
- - *freep = wmempcpy (*freep, nodep->string, nodep->len);
- + *freep = wmemcpy (*freep, nodep->string, nodep->len) + nodep->len;
- *offsetp += nodep->len * sizeof (wchar_t);
-
- for (subs = nodep->next; subs != NULL; subs = subs->next)
- --- a/libdwfl/dwfl_error.c
- +++ b/libdwfl/dwfl_error.c
- @@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
- const char *
- dwfl_errmsg (int error)
- {
- + static __thread char s[64] = "";
- if (error == 0 || error == -1)
- {
- int last_error = global_error;
- @@ -154,7 +155,8 @@ dwfl_errmsg (int error)
- switch (error &~ 0xffff)
- {
- case OTHER_ERROR (ERRNO):
- - return strerror_r (error & 0xffff, "bad", 0);
- + strerror_r (error & 0xffff, s, sizeof(s));
- + return s;
- case OTHER_ERROR (LIBELF):
- return elf_errmsg (error & 0xffff);
- case OTHER_ERROR (LIBDW):
- --- a/libdwfl/libdwfl.h
- +++ b/libdwfl/libdwfl.h
- @@ -31,6 +31,27 @@
-
- #include "libdw.h"
- #include <stdio.h>
- +#include <unistd.h>
- +#include <alloca.h>
- +#include <string.h>
- +
- +#ifndef TEMP_FAILURE_RETRY
- +#define TEMP_FAILURE_RETRY(expression) \
- + (__extension__ \
- + ({ long int __result; \
- + do __result = (long int) (expression); \
- + while (__result == -1L && errno == EINTR); \
- + __result; }))
- +#endif
- +
- +#ifndef strndupa
- +#define strndupa(s, n) \
- + (__extension__ ({const char *__in = (s); \
- + size_t __len = strnlen (__in, (n)) + 1; \
- + char *__out = (char *) alloca (__len); \
- + __out[__len-1] = '\0'; \
- + (char *) memcpy (__out, __in, __len-1);}))
- +#endif
-
- /* Handle for a session using the library. */
- typedef struct Dwfl Dwfl;
- --- a/libdwfl/find-debuginfo.c
- +++ b/libdwfl/find-debuginfo.c
- @@ -372,7 +372,7 @@ dwfl_standard_find_debuginfo (Dwfl_Modul
- /* If FILE_NAME is a symlink, the debug file might be associated
- with the symlink target name instead. */
-
- - char *canon = canonicalize_file_name (file_name);
- + char *canon = realpath (file_name, NULL);
- if (canon != NULL && strcmp (file_name, canon))
- fd = find_debuginfo_in_path (mod, canon,
- debuglink_file, debuglink_crc,
- --- a/libdwfl/dwfl_build_id_find_elf.c
- +++ b/libdwfl/dwfl_build_id_find_elf.c
- @@ -94,7 +94,7 @@ __libdwfl_open_by_build_id (Dwfl_Module
- {
- if (*file_name != NULL)
- free (*file_name);
- - *file_name = canonicalize_file_name (name);
- + *file_name = realpath (name, NULL);
- if (*file_name == NULL)
- {
- *file_name = name;
- --- a/libelf/elf_getarsym.c
- +++ b/libelf/elf_getarsym.c
- @@ -297,7 +297,7 @@ elf_getarsym (Elf *elf, size_t *ptr)
- arsym[cnt].as_off = (*u32)[cnt];
-
- arsym[cnt].as_hash = _dl_elf_hash (str_data);
- - str_data = rawmemchr (str_data, '\0') + 1;
- + str_data = memchr (str_data, '\0', SIZE_MAX) + 1;
- }
-
- /* At the end a special entry. */
|