2009-01-12 05:09:49 +08:00
|
|
|
.section .gnu.linkonce.t.foo, "a", %progbits
|
2017-02-24 21:32:27 +08:00
|
|
|
.L1:
|
2009-01-12 05:09:49 +08:00
|
|
|
.globl symfoo
|
|
|
|
symfoo:
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
.section .gnu.linkonce.t.bar, "a", %progbits
|
2017-02-24 21:32:27 +08:00
|
|
|
.L2:
|
2009-01-12 05:09:49 +08:00
|
|
|
.globl symbar
|
|
|
|
symbar:
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
.section .gnu.linkonce.r.foo, "a", %progbits
|
2017-02-24 21:32:27 +08:00
|
|
|
.long .L1
|
2009-01-12 05:09:49 +08:00
|
|
|
.long symfoo
|
|
|
|
/* ld currently incorrectly silently discards this relocation. Just such
|
|
|
|
relocations are never produced by g++-3.4 so this suppressed error message
|
|
|
|
is not a problem:
|
|
|
|
#error: `.gnu.linkonce.t.bar' referenced in section `.gnu.linkonce.r.foo' of tmpdir/dump1.o: defined in discarded section `.gnu.linkonce.t.bar' of tmpdir/dump1.o
|
|
|
|
*/
|
2017-02-24 21:32:27 +08:00
|
|
|
.long .L2
|
2009-01-12 05:09:49 +08:00
|
|
|
.long symbar
|