aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/discard.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/discard.ld')
-rw-r--r--ld/testsuite/ld-riscv-elf/discard.ld13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/discard.ld b/ld/testsuite/ld-riscv-elf/discard.ld
new file mode 100644
index 0000000..3afed21
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/discard.ld
@@ -0,0 +1,13 @@
+OUTPUT_ARCH(riscv)
+ENTRY(_start)
+SECTIONS
+{
+ /DISCARD/ : { *(.discard.*) }
+
+ . = 0x10000;
+ .text : { *(.text) }
+ . = 0x20000;
+ .got : { *(.got) *(.got.plt)}
+ . = 0x30000;
+ .data : { *(.data) *(.data.*) }
+}