From: H.J. Lu Date: Sun, 13 Jan 2013 00:30:20 +0000 (+0000) Subject: Set bfd errror for normal and TLS symbol access X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68c4a57ee620ebf9f537473f39e36f3c894e0879;p=binutils-gdb.git Set bfd errror for normal and TLS symbol access * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for normal and TLS symbol access. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0fcbe54b458..ecec502a173 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-01-12 H.J. Lu + + * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for + normal and TLS symbol access. + * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. + 2013-01-12 Alan Modra * elf-bfd.h (_bfd_elf_strtab_refcount): Declare. diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index f76c7a7f404..99e8f45c86e 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1642,6 +1642,7 @@ elf_i386_check_relocs (bfd *abfd, (_("%B: `%s' accessed both as normal and " "thread local symbol"), abfd, name); + bfd_set_error (bfd_error_bad_value); return FALSE; } } diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 92bf991387f..0d23cc39663 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1644,6 +1644,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info, (*_bfd_error_handler) (_("%B: '%s' accessed both as normal and thread local symbol"), abfd, name); + bfd_set_error (bfd_error_bad_value); return FALSE; } }