Previous fix only got some undefined symbols. This one gets all of them.

This commit is contained in:
matt 2008-07-14 17:59:41 +00:00
parent 0d6dbadf45
commit 92f61a999a
1 changed files with 3 additions and 1 deletions

View File

@ -6424,7 +6424,6 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
case bfd_link_hash_undefweak:
input_sec = bfd_und_section_ptr;
sym.st_shndx = SHN_UNDEF;
sym.st_size = 0;
break;
case bfd_link_hash_defined:
@ -6527,6 +6526,9 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
sym.st_info = ELF_ST_INFO (bindtype, ELF_ST_TYPE (sym.st_info));
}
if (sym.st_shndx == SHN_UNDEF)
sym.st_size = 0;
/* If a non-weak symbol with non-default visibility is not defined
locally, it is a fatal error. */
if (! finfo->info->relocatable