summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nios2/relax_call26_cache.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-nios2/relax_call26_cache.ld')
-rw-r--r--ld/testsuite/ld-nios2/relax_call26_cache.ld13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nios2/relax_call26_cache.ld b/ld/testsuite/ld-nios2/relax_call26_cache.ld
new file mode 100644
index 0000000..d3c4307
--- /dev/null
+++ b/ld/testsuite/ld-nios2/relax_call26_cache.ld
@@ -0,0 +1,13 @@
+/* Simple script for testing call26 relaxation via linker stubs.
+ In this case, input sections text0 and text1 are placed in the
+ same output section in the same 256MB segment, so they can share stubs. */
+
+OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2")
+OUTPUT_ARCH(nios2)
+ENTRY(_start)
+SECTIONS
+{
+ _start = .;
+ text0 0x0fffffe0 : { *(text0) *(text1) }
+ text2 0x40000000 : { *(text2) }
+}