From: H.J. Lu Date: Sun, 14 Jun 2009 05:53:55 +0000 (+0000) Subject: 2009-06-13 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=637fa7af7fc91adde728881444f49bcafd6ce3c5;p=binutils-gdb.git 2009-06-13 H.J. Lu * elf32-i386.c (elf_i386_relocate_section): Properly report local symbol for unhandled relocation against STT_GNU_IFUNC symbol. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 05e93da97dd..5d8c8f3d1ce 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -3,7 +3,9 @@ * elf32-i386.c (elf_i386_check_relocs): Properly report local symbol for unhandled relocation against STT_GNU_IFUNC symbol. + (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. + (elf64_x86_64_relocate_section): Likewise. 2009-06-13 H.J. Lu diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index c6e62653ebb..7ac90c24d93 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -3163,7 +3163,9 @@ elf_i386_relocate_section (bfd *output_bfd, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, elf_howto_table[r_type].name, - h->root.root.string, __FUNCTION__); + (h->root.root.string + ? h->root.root.string : "a local symbol"), + __FUNCTION__); bfd_set_error (bfd_error_bad_value); return FALSE; diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 3cb4f062026..27b1cbde411 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -2867,7 +2867,9 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, x86_64_elf_howto_table[r_type].name, - h->root.root.string, __FUNCTION__); + (h->root.root.string + ? h->root.root.string : "a local symbol"), + __FUNCTION__); bfd_set_error (bfd_error_bad_value); return FALSE; @@ -2883,7 +2885,9 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info, (_("%B: relocation %s against STT_GNU_IFUNC " "symbol `%s' has non-zero addend: %d"), input_bfd, x86_64_elf_howto_table[r_type].name, - h->root.root.string, rel->r_addend); + (h->root.root.string + ? h->root.root.string : "a local symbol"), + rel->r_addend); bfd_set_error (bfd_error_bad_value); return FALSE; }