aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-i386.c1
-rw-r--r--bfd/elf64-x86-64.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0fcbe54..ecec502 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * 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 <amodra@gmail.com>
* elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index f76c7a7..99e8f45 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 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;
}
}