aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arc/jli-script.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arc/jli-script.ld')
-rw-r--r--ld/testsuite/ld-arc/jli-script.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arc/jli-script.ld b/ld/testsuite/ld-arc/jli-script.ld
new file mode 100644
index 0000000..fdb9e90
--- /dev/null
+++ b/ld/testsuite/ld-arc/jli-script.ld
@@ -0,0 +1,20 @@
+/* Default linker script, for normal executables. */
+OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc",
+ "elf32-littlearc")
+
+OUTPUT_ARCH(arc)
+ENTRY(__start)
+
+SECTIONS
+{
+ /* Read-only sections, merged into text segment: */
+ PROVIDE (__start = 0x10000);
+ . = 0x10000 + SIZEOF_HEADERS;
+
+ .text : {*(.text .stub .text.*)} =0
+ .jlitab : {jlitab*.o(.jlitab*) *(.jlitab*) }
+ .tdata : {.tdata = .; *(.tdata .tdata.* .gnu.linkonce.td.*) }
+ .tbss : {.tbss = .; *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
+
+ /DISCARD/ : { *(.note.GNU-stack) }
+}