* bfd/elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if

the symbol's section is the undefined section.
        * gas/testsuite/gas/elf/symtab.s: New test.
        gas/testsuite/gas/elf/symtab.d: New expected output.
        gas/testsuite/gas/elf/elf.exp: Run the new symbtab test.
This commit is contained in:
Catherine Moore
2007-12-11 13:13:59 +00:00
parent 60955fda27
commit 8424d8f538
5 changed files with 23 additions and 0 deletions

View File

@@ -6046,6 +6046,7 @@ _bfd_elf_copy_private_symbol_data (bfd *ibfd,
osym = elf_symbol_from (obfd, osymarg);
if (isym != NULL
&& isym->internal_elf_sym.st_shndx != 0
&& osym != NULL
&& bfd_is_abs_section (isym->symbol.section))
{