summaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-01-13 00:30:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-01-13 00:30:16 +0000
commitc6420ac7a72cf0a6a32a52897fd3d55bdca78294 (patch)
treebf30ef4d1bc691b9ebe174532c6bc8ddb4d01bc2 /bfd/elf32-i386.c
parente26bd1fb324667bf5bea6d52cc6ca5d19f7a2dff (diff)
downloadbinutils-redhat-c6420ac7a72cf0a6a32a52897fd3d55bdca78294.tar.gz
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;
}
}