* 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:
parent
60955fda27
commit
8424d8f538
5 changed files with 23 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
6
gas/testsuite/gas/elf/symtab.d
Normal file
6
gas/testsuite/gas/elf/symtab.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
#readelf: -s
|
||||
#name: .set with expression
|
||||
|
||||
#...
|
||||
.*ABS.*shift.*
|
||||
#pass
|
5
gas/testsuite/gas/elf/symtab.s
Normal file
5
gas/testsuite/gas/elf/symtab.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
.text
|
||||
.global foo
|
||||
foo:
|
||||
.set shift, 32
|
||||
.set shift, shift - 1
|
Loading…
Reference in a new issue