aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-01-26 02:57:06 +0000
committerAlan Modra <amodra@gmail.com>2008-01-26 02:57:06 +0000
commit8ee35d562fcd9c8698520e668db0f8d067d28f44 (patch)
treefe74d203038a1f1259eae34c546a3e285833779e /ld
parent8bc7a1c115ef0296123bb6d0f0ec8d171eb548f9 (diff)
downloadgdb-8ee35d562fcd9c8698520e668db0f8d067d28f44.zip
gdb-8ee35d562fcd9c8698520e668db0f8d067d28f44.tar.gz
gdb-8ee35d562fcd9c8698520e668db0f8d067d28f44.tar.bz2
* ld-elf/loadaddr.t: New, extracted from..
* ld-elf/loadaddr1.t: ..here. Use insert. * ld-elf/loadaddr2.t: Likewise. * ld-elf/loadaddr1.d: Update. * ld-elf/loadaddr2.d: Update.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/loadaddr.t10
-rw-r--r--ld/testsuite/ld-elf/loadaddr1.d2
-rw-r--r--ld/testsuite/ld-elf/loadaddr1.t8
-rw-r--r--ld/testsuite/ld-elf/loadaddr2.d2
-rw-r--r--ld/testsuite/ld-elf/loadaddr2.t8
6 files changed, 22 insertions, 16 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index bda99a2..ec1018e 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-26 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-elf/loadaddr.t: New, extracted from..
+ * ld-elf/loadaddr1.t: ..here. Use insert.
+ * ld-elf/loadaddr2.t: Likewise.
+ * ld-elf/loadaddr1.d: Update.
+ * ld-elf/loadaddr2.d: Update.
+
2008-01-25 Alan Modra <amodra@bigpond.net.au>
* ld-spu/ovl.lnk: Delete overlay.
diff --git a/ld/testsuite/ld-elf/loadaddr.t b/ld/testsuite/ld-elf/loadaddr.t
new file mode 100644
index 0000000..91e9ef2
--- /dev/null
+++ b/ld/testsuite/ld-elf/loadaddr.t
@@ -0,0 +1,10 @@
+SECTIONS
+{
+ . = -0x7ff00000;
+ .text : {*(.text .text.*)}
+ . = ALIGN(64);
+ .foo : { *(.foo) }
+ . = ALIGN(8192);
+ .data : AT (ADDR(.data)) { *(.data) }
+ /DISCARD/ : { *(.*) }
+}
diff --git a/ld/testsuite/ld-elf/loadaddr1.d b/ld/testsuite/ld-elf/loadaddr1.d
index 31ac0ac..2d3469b 100644
--- a/ld/testsuite/ld-elf/loadaddr1.d
+++ b/ld/testsuite/ld-elf/loadaddr1.d
@@ -1,5 +1,5 @@
#source: loadaddr.s
-#ld: -T loadaddr1.t -z max-page-size=0x200000
+#ld: -T loadaddr1.t -T loadaddr.t -z max-page-size=0x200000
#readelf: -l --wide
#target: *-*-linux*
diff --git a/ld/testsuite/ld-elf/loadaddr1.t b/ld/testsuite/ld-elf/loadaddr1.t
index f28c7cb..5037b4f 100644
--- a/ld/testsuite/ld-elf/loadaddr1.t
+++ b/ld/testsuite/ld-elf/loadaddr1.t
@@ -1,13 +1,7 @@
SECTIONS
{
- . = -0x7ff00000;
- .text : {*(.text .text.*)}
- . = ALIGN(64);
- .foo : { *(.foo) }
.bar -0xa00000 : AT ((LOADADDR(.foo) + SIZEOF(.foo) + 4095) & ~(4095))
{ *(.bar) }
. = LOADADDR(.bar) + 4096;
- . = ALIGN(8192);
- .data : AT (ADDR(.data)) { *(.data) }
- /DISCARD/ : { *(.*) }
}
+INSERT AFTER .foo;
diff --git a/ld/testsuite/ld-elf/loadaddr2.d b/ld/testsuite/ld-elf/loadaddr2.d
index 2198b6c..e447e38 100644
--- a/ld/testsuite/ld-elf/loadaddr2.d
+++ b/ld/testsuite/ld-elf/loadaddr2.d
@@ -1,5 +1,5 @@
#source: loadaddr.s
-#ld: -T loadaddr2.t -z max-page-size=0x200000
+#ld: -T loadaddr2.t -T loadaddr.t -z max-page-size=0x200000
#readelf: -l --wide
#target: *-*-linux*
diff --git a/ld/testsuite/ld-elf/loadaddr2.t b/ld/testsuite/ld-elf/loadaddr2.t
index fd897e7..0ad16df 100644
--- a/ld/testsuite/ld-elf/loadaddr2.t
+++ b/ld/testsuite/ld-elf/loadaddr2.t
@@ -1,13 +1,7 @@
SECTIONS
{
- . = -0x7ff00000;
- .text : {*(.text .text.*)}
- . = ALIGN(64);
- .foo : { *(.foo) }
.bar -0x7fef0000 : AT ((LOADADDR(.foo) + SIZEOF(.foo) + 4095) & ~(4095))
{ *(.bar) }
. = LOADADDR(.bar) + 0x200000;
- . = ALIGN(8192);
- .data : AT (ADDR(.data)) { *(.data) }
- /DISCARD/ : { *(.*) }
}
+INSERT BEFORE .data;