bfd/
commitc0639e6d354b8a0df6c4ca482301fa0fe808a2ba
authorRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 23 Jul 2007 09:56:19 +0000 (23 09:56 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 23 Jul 2007 09:56:19 +0000 (23 09:56 +0000)
treea5f38f359e141d2cb095d9185f8cf74d388b8a88
parentff70b2b5969e0723e1e9c69b7fa180376282b187
bfd/
* elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
of weakdef->root.type if weakdef has no regular definition.

ld/testsuite/
* ld-elf/weak-dyn-1a.s, ld-elf/weak-dyn-1b.s, ld-elf/weak-dyn-1.ld,
* ld-elf/weak-dyn-1.rd: New test.
* ld-elf/elf.exp: Run it.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/weak-dyn-1.ld [new file with mode: 0644]
ld/testsuite/ld-elf/weak-dyn-1.rd [new file with mode: 0644]
ld/testsuite/ld-elf/weak-dyn-1a.s [new file with mode: 0644]
ld/testsuite/ld-elf/weak-dyn-1b.s [new file with mode: 0644]