aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/extract-symbol-1.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/extract-symbol-1.ld')
-rw-r--r--ld/testsuite/ld-elf/extract-symbol-1.ld18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/extract-symbol-1.ld b/ld/testsuite/ld-elf/extract-symbol-1.ld
new file mode 100644
index 0000000..a989b26
--- /dev/null
+++ b/ld/testsuite/ld-elf/extract-symbol-1.ld
@@ -0,0 +1,18 @@
+ENTRY(_entry)
+PHDRS
+{
+ data PT_LOAD;
+}
+SECTIONS
+{
+ . = 0x10000;
+ .foo : { *(.foo) } :data
+
+ . = 0x20000;
+ .bar : { *(.bar) } :data
+
+ /DISCARD/ : { *(*) }
+
+ _entry = 0x30000;
+ linker_symbol = 0x40000;
+}