summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-at6.t
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-05 02:55:27 +0000
committerAlan Modra <amodra@gmail.com>2013-03-05 02:55:27 +0000
commit13762d2ee43b8b49d5d26a87c5496439d829bc6a (patch)
treec03c40bb14a66e3b1780ba4184d2ea82b6ad8c8b /ld/testsuite/ld-scripts/rgn-at6.t
parentda797b631b318a4ecab6aac93315feb24553bfdf (diff)
downloadbinutils-gdb-13762d2ee43b8b49d5d26a87c5496439d829bc6a.tar.gz
PR ld/15222
ld/ * ldlang.c (lang_size_sections_1): When given an lma_region align LMA as per VMA only if lma_region is the same as region. ld/testsuite/ * ld-scripts/rgn-at6.s, * ld-scripts/rgn-at6.t, * ld-scripts/rgn-at6.d, * ld-scripts/rgn-at7.t, * ld-scripts/rgn-at7.d: New tests.
Diffstat (limited to 'ld/testsuite/ld-scripts/rgn-at6.t')
-rw-r--r--ld/testsuite/ld-scripts/rgn-at6.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/rgn-at6.t b/ld/testsuite/ld-scripts/rgn-at6.t
new file mode 100644
index 00000000000..0408dcdf3f9
--- /dev/null
+++ b/ld/testsuite/ld-scripts/rgn-at6.t
@@ -0,0 +1,11 @@
+MEMORY
+{
+ ram : ORIGIN = 0x10000, LENGTH = 0x10000
+}
+
+SECTIONS
+{
+ .text : {*(.text)} > ram AT> ram
+ .data : ALIGN (16) {*(.data)} > ram AT> ram
+ /DISCARD/ : {*(*)}
+}