PR ld/13229

PR ld/13244
	* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
	dynamic.
This commit is contained in:
Alan Modra 2011-10-08 07:50:19 +00:00
parent 99df68896e
commit c3df8c1482
2 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,13 @@
2011-10-08 Alan Modra <amodra@gmail.com>
PR ld/13229
PR ld/13244
* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
dynamic.
2011-10-08 Alan Modra <amodra@gmail.com>
PR ld/13229
* elflink.c (elf_link_output_extsym): Strip defined plugin symbols
even when strip_discarded is false.

View file

@ -4376,11 +4376,13 @@ error_free_dyn:
dynsym = TRUE;
}
/* We don't want to make debug symbol dynamic. */
if (definition && (sec->flags & SEC_DEBUGGING) && !info->relocatable)
{
/* We don't want to make debug symbol dynamic. */
dynsym = FALSE;
}
dynsym = FALSE;
/* Nor should we make plugin symbols dynamic. */
if ((abfd->flags & BFD_PLUGIN) != 0)
dynsym = FALSE;
if (definition)
h->target_internal = isym->st_target_internal;