diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-02-02 13:14:43 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-02-02 13:14:59 -0800 |
commit | 6fab532b4781b0bcb554fd5c2f2e6d5448343aff (patch) | |
tree | 702560c26b0818d6b0a92cb5d04dbaa60a9248df /sysdeps/x86_64 | |
parent | ed8d5ffd0a14e84298a15ae2ec9b799010166b28 (diff) | |
download | glibc-6fab532b4781b0bcb554fd5c2f2e6d5448343aff.tar.gz glibc-6fab532b4781b0bcb554fd5c2f2e6d5448343aff.tar.xz glibc-6fab532b4781b0bcb554fd5c2f2e6d5448343aff.zip |
Allow IFUNC relocation against unrelocated shared library
IFUNC relocation against definition in unrelocated shared library will lead to segfault when the IFUNC function is called. This patch allows such IFUNC relocations with a warning. This isn't a real fix for https://sourceware.org/bugzilla/show_bug.cgi?id=21041 It simply allows the program to load. The program will segfault when longjmp is called. * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace _dl_fatal_printf with _dl_error_printf for IFUNC relocation against unrelocated shared library. * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r-- | sysdeps/x86_64/dl-machine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h index 3e7ae22c67..daf4d8c070 100644 --- a/sysdeps/x86_64/dl-machine.h +++ b/sysdeps/x86_64/dl-machine.h @@ -339,7 +339,7 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc, { const char *strtab = (const char *) D_PTR (map, l_info[DT_STRTAB]); - _dl_fatal_printf ("\ + _dl_error_printf ("\ %s: Relink `%s' with `%s' for IFUNC symbol `%s'\n", RTLD_PROGNAME, map->l_name, sym_map->l_name, |