aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/weak-dyn-1a.s
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2007-07-23 09:56:19 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2007-07-23 09:56:19 +0000
commita26587bab514ebd91e3463018462acc6855826f1 (patch)
tree0311bc63776a670e00cdc3730b3c9e520722b7c7 /ld/testsuite/ld-elf/weak-dyn-1a.s
parent07a5aea53e1b1d0d2148ed6a49e18d141dc504b0 (diff)
downloadgdb-a26587bab514ebd91e3463018462acc6855826f1.zip
gdb-a26587bab514ebd91e3463018462acc6855826f1.tar.gz
gdb-a26587bab514ebd91e3463018462acc6855826f1.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-elf/weak-dyn-1a.s')
-rw-r--r--ld/testsuite/ld-elf/weak-dyn-1a.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/weak-dyn-1a.s b/ld/testsuite/ld-elf/weak-dyn-1a.s
new file mode 100644
index 0000000..d77c32e
--- /dev/null
+++ b/ld/testsuite/ld-elf/weak-dyn-1a.s
@@ -0,0 +1,13 @@
+ .globl foo
+ .weak foo
+ .type foo,%object
+ .size foo,1
+
+ .globl bar
+ .type bar,%object
+ .size bar,1
+
+ .data
+foo:
+bar:
+ .dc.a data_begin