summaryrefslogtreecommitdiffstats
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-01-13 00:30:20 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-01-13 00:30:20 +0000
commit68c4a57ee620ebf9f537473f39e36f3c894e0879 (patch)
tree356a464e75884618c84b1a3ef11180b2388a79a8 /bfd/elf32-i386.c
parent98cc3987247de8e9ac1eafb64526706b5aab620e (diff)
downloadppe42-binutils-68c4a57ee620ebf9f537473f39e36f3c894e0879.tar.gz
ppe42-binutils-68c4a57ee620ebf9f537473f39e36f3c894e0879.zip
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.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index f76c7a7f40..99e8f45c86 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;
}
}
OpenPOWER on IntegriCloud