aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r--ld/testsuite/ld-scripts/rgn-at5.d11
-rw-r--r--ld/testsuite/ld-scripts/rgn-at5.t10
2 files changed, 13 insertions, 8 deletions
diff --git a/ld/testsuite/ld-scripts/rgn-at5.d b/ld/testsuite/ld-scripts/rgn-at5.d
index e33b34b..972c6c2 100644
--- a/ld/testsuite/ld-scripts/rgn-at5.d
+++ b/ld/testsuite/ld-scripts/rgn-at5.d
@@ -11,9 +11,10 @@
Sections:
Idx +Name +Size +VMA +LMA +File off +Algn +Flags
- 0 .sec0 +0+4 +0+02000 +0+2000 +0+02000 +.*
- 1 .sec1 +0+4 +0+01000 +0+012c +0+01000 +.*
- 2 .sec2 +0+4 +0+04000 +0+603c +0+04000 +.*
- 3 .sec3 +0+4 +0+05000 +0+412c +0+03000 +.*
- 4 .sec4 +0+4 +0+02004 +0+2004 +0+02004 +.*
+ 0 .sec0 +0+4 +0+2000 +0+2000 +0+1000 +.*
+ 1 .sec1 +0+4 +0+1000 +0+2004 +0+2000 +.*
+ 2 .sec2 +0+4 +0+4000 +0+603c +0+4000 +.*
+ 3 .sec3 +0+4 +0+5000 +0+5000 +0+3000 +.*
+ 4 .sec4 +0+4 +0+2008 +0+2008 +0+2008 +.*
+ 5 .sec5 +0+4 +0+200c +0+200c +0+200c +.*
#pass
diff --git a/ld/testsuite/ld-scripts/rgn-at5.t b/ld/testsuite/ld-scripts/rgn-at5.t
index 53ad242..3a35994 100644
--- a/ld/testsuite/ld-scripts/rgn-at5.t
+++ b/ld/testsuite/ld-scripts/rgn-at5.t
@@ -10,13 +10,17 @@ SECTIONS
{
.sec0 : { *(*.sec0) }
- .sec1 ORIGIN (region1) : AT(LENGTH (region2)) { *(*.sec1) }
+ .sec1 ORIGIN (region1) : { *(*.sec1) } AT> region2
- fred = ORIGIN (region1) + LENGTH (region1) ;
+ fred = ORIGIN (region1) + LENGTH (region1);
.sec2 : { *(*.sec2) } > region3 AT> region4
.sec3 0x5000 : { *(*.sec3) }
- /DISCARD/ : { *(.reginfo) }
+ .sec4 : { *(*.sec4) } AT> region2
+
+ .sec5 : { LONG(0x5555) } > region2
+
+ /DISCARD/ : { *(*) }
}