summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/implib.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/implib.s')
-rw-r--r--ld/testsuite/ld-elf/implib.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/implib.s b/ld/testsuite/ld-elf/implib.s
new file mode 100644
index 00000000000..a86a940c138
--- /dev/null
+++ b/ld/testsuite/ld-elf/implib.s
@@ -0,0 +1,22 @@
+.ifndef NO_GLOBAL
+ .bss
+ .comm exported1,1
+
+ .data
+ .global exported2
+ .type exported2, %object
+ .size exported2, 1
+exported2:
+ .byte 21
+.endif
+
+ .bss
+not_exported1:
+ .space 1
+ .size not_exported1, 1
+
+ .data
+ .type not_exported2, %object
+ .size not_exported2, 1
+not_exported2:
+ .byte 42