summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-at3.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/rgn-at3.d')
-rw-r--r--ld/testsuite/ld-scripts/rgn-at3.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/rgn-at3.d b/ld/testsuite/ld-scripts/rgn-at3.d
new file mode 100644
index 0000000..b0ea08a
--- /dev/null
+++ b/ld/testsuite/ld-scripts/rgn-at3.d
@@ -0,0 +1,19 @@
+# name: rgn-at3
+# source: rgn-at.s
+# ld: -T rgn-at3.t
+# objdump: -w -h
+# xfail: rx-*-* *-*-nacl*
+# FAILS on the RX because the linker has to set LMA == VMA for the
+# Renesas loader.
+# FAILs on NaCl targets because the linker extends the first segment
+# to fill out the page, making its p_vaddr+p_memsz cover the sh_addr
+# of .bss too, which makes BFD compute its LMA from the p_paddr of the
+# text segment.
+
+.*: file format .*
+
+Sections:
+Idx +Name +Size +VMA +LMA +File off +Algn +Flags
+ 0 .text +0+[0-9a-f][0-9a-f] +0+0010000 +0+0020000 +.*
+ 1 .data +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+0030000 +.*
+ 2 .bss +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+00300[0-9a-f]+ +.*