Pull across the fix for ld/1021 and ld/1031.

This has been applied to the binutils_2_16 branch.
This commit is contained in:
skrll 2006-02-02 22:14:43 +00:00
parent 1a673ba65b
commit 8d40ee0d82
2 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,13 @@
2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
PR ld/1021
PR ld/1031
* elflink.c (elf_link_add_object_symbols): Also append the version
name to non-hidden absolute symbols that are functions.
2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.am: Clear RELEASE.
* Makefile.am: Set RELEASE.
* configure.in: Bump version to 2.16.1.

View File

@ -3683,11 +3683,12 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
/* If this is a hidden symbol, or if it is not version
1, we append the version name to the symbol name.
However, we do not modify a non-hidden absolute
symbol, because it might be the version symbol
itself. FIXME: What if it isn't? */
However, we do not modify a non-hidden absolute symbol
if it is not a function, because it might be the version
symbol itself. FIXME: What if it isn't? */
if ((iver.vs_vers & VERSYM_HIDDEN) != 0
|| (vernum > 1 && ! bfd_is_abs_section (sec)))
|| (vernum > 1 && (! bfd_is_abs_section (sec)
|| ELF_ST_TYPE (isym->st_info) == STT_FUNC)))
{
const char *verstr;
size_t namelen, verlen, newlen;