aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.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/elf64-x86-64.c
parent98cc3987247de8e9ac1eafb64526706b5aab620e (diff)
downloadgdb-68c4a57ee620ebf9f537473f39e36f3c894e0879.zip
gdb-68c4a57ee620ebf9f537473f39e36f3c894e0879.tar.gz
gdb-68c4a57ee620ebf9f537473f39e36f3c894e0879.tar.bz2
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/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 92bf991..0d23cc3 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;
}
}