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.
This commit is contained in:
H.J. Lu 2013-01-13 00:30:20 +00:00
parent 98cc398724
commit 68c4a57ee6
3 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}
}

View File

@ -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;
}
}