* 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

@ -1,3 +1,8 @@
2007-12-11 Catherine Moore <clm@codesourcery.com>
* elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
the symbol's section is the undefined section.
2007-12-11 Alan Modra <amodra@bigpond.net.au>
* elf.c (elf_fake_sections): Add "warning:" to "..changed to PROGBITS"

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))
{

View File

@ -1,3 +1,9 @@
2007-12-11 Catherine Moore <clm@codesourcery.com>
gas/elf/symtab.s: New test.
gas/elf/symtab.d: New expected output.
gas/elf/elf.exp: Run the new symbtab test.
2007-12-10 Richard Sandiford <rsandifo@nildram.co.uk>
* gas/mips/align2.s, gas/mips/align2.d, gas/mips/align2-el.d: New

View File

@ -0,0 +1,6 @@
#readelf: -s
#name: .set with expression
#...
.*ABS.*shift.*
#pass

View File

@ -0,0 +1,5 @@
.text
.global foo
foo:
.set shift, 32
.set shift, shift - 1