* elflink.c (elf_link_add_object_symbols): Force symbols in

discarded COMDAT group sections to have default visibility.
This commit is contained in:
Julian Brown 2005-02-24 15:28:56 +00:00
parent 920d2a4419
commit 1f02cbd9ee
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
* elflink.c (elf_link_add_object_symbols): Force symbols in discarded
COMDAT group sections to have default visibility.
2005-02-24 Alan Modra <amodra@bigpond.net.au>
* coffcode.h (coff_print_aux): Warning fix.

View File

@ -3575,9 +3575,12 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
sec = bfd_abs_section_ptr;
else if (sec->kept_section)
{
/* Symbols from discarded section are undefined. */
/* Symbols from discarded section are undefined, and have
default visibility. */
sec = bfd_und_section_ptr;
isym->st_shndx = SHN_UNDEF;
isym->st_other = STV_DEFAULT
| (isym->st_other & ~ ELF_ST_VISIBILITY(-1));
}
else if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0)
value -= sec->vma;