aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/start2.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-gc/start2.s')
-rw-r--r--ld/testsuite/ld-gc/start2.s7
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ld-gc/start2.s b/ld/testsuite/ld-gc/start2.s
index b0084a1..920feb2 100644
--- a/ld/testsuite/ld-gc/start2.s
+++ b/ld/testsuite/ld-gc/start2.s
@@ -1,7 +1,12 @@
-.globl _start
+ .globl _start
_start:
+ .ifdef UNDERSCORE
+ .weak ___start__foo
+ .dc.a ___start__foo
+ .else
.weak __start__foo
.dc.a __start__foo
+ .endif
.section _foo,"aw",%progbits
foo:
.long 1