aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/local1.d7
-rw-r--r--ld/testsuite/ld-elf/local1.map6
-rw-r--r--ld/testsuite/ld-elf/local1.s6
3 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/local1.d b/ld/testsuite/ld-elf/local1.d
new file mode 100644
index 0000000..5957d8f
--- /dev/null
+++ b/ld/testsuite/ld-elf/local1.d
@@ -0,0 +1,7 @@
+#ld: -shared --version-script local1.map
+#readelf: -s --wide
+#target: *-*-linux*
+
+#...
+ .*: [0-9a-f]* +[0-9a-f]+ +OBJECT +LOCAL +DEFAULT +[0-9] +foo
+#...
diff --git a/ld/testsuite/ld-elf/local1.map b/ld/testsuite/ld-elf/local1.map
new file mode 100644
index 0000000..1e2aa8c
--- /dev/null
+++ b/ld/testsuite/ld-elf/local1.map
@@ -0,0 +1,6 @@
+{
+global:
+ *;
+local:
+ foo;
+};
diff --git a/ld/testsuite/ld-elf/local1.s b/ld/testsuite/ld-elf/local1.s
new file mode 100644
index 0000000..0122efa
--- /dev/null
+++ b/ld/testsuite/ld-elf/local1.s
@@ -0,0 +1,6 @@
+ .globl foo
+ .protected foo
+ .type foo,%object
+ .data
+foo:
+ .long 0