aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-02-10 08:04:22 +0000
committerAlan Modra <amodra@gmail.com>2011-02-10 08:04:22 +0000
commitea6c5ce90d6009f4b883b1003fec16521b5c5756 (patch)
tree42e43843edf9a0bf8f2e91a33e5381d5f1764e62 /ld
parent6092a2bf7b1f764bc5c2fd609fe6e2f2a970c143 (diff)
downloadgdb-ea6c5ce90d6009f4b883b1003fec16521b5c5756.zip
gdb-ea6c5ce90d6009f4b883b1003fec16521b5c5756.tar.gz
gdb-ea6c5ce90d6009f4b883b1003fec16521b5c5756.tar.bz2
* ld-scripts/defined.exp: Don't run defined5 for AOUT.
* ld-scripts/defined5.s: Use .text for "defined" section. * ld-scripts/defined5.t: Adjust.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-scripts/defined.exp4
-rw-r--r--ld/testsuite/ld-scripts/defined5.s2
-rw-r--r--ld/testsuite/ld-scripts/defined5.t2
4 files changed, 9 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 9c36f6d..3796f17 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2011-02-10 Alan Modra <amodra@gmail.com>
+ * ld-scripts/defined.exp: Don't run defined5 for AOUT.
+ * ld-scripts/defined5.s: Use .text for "defined" section.
+ * ld-scripts/defined5.t: Adjust.
+
* ld-gc/start.d: Exclude frv-*-linux*.
* ld-misc/defsym1.d: Likewise.
diff --git a/ld/testsuite/ld-scripts/defined.exp b/ld/testsuite/ld-scripts/defined.exp
index 10f14da..bfee102 100644
--- a/ld/testsuite/ld-scripts/defined.exp
+++ b/ld/testsuite/ld-scripts/defined.exp
@@ -67,5 +67,7 @@ set prms_id 0
run_dump_test "defined2"
run_dump_test "defined3"
run_dump_test "defined4"
-run_dump_test "defined5"
+if ![is_aout_format] {
+ run_dump_test "defined5"
+}
set LDFLAGS "$saved_LDFLAGS"
diff --git a/ld/testsuite/ld-scripts/defined5.s b/ld/testsuite/ld-scripts/defined5.s
index 592e54c..9dd58d6 100644
--- a/ld/testsuite/ld-scripts/defined5.s
+++ b/ld/testsuite/ld-scripts/defined5.s
@@ -1,6 +1,6 @@
.globl defined
.data
.byte 0
- .section .data.cacheline_aligned
+ .text
defined:
.byte 0
diff --git a/ld/testsuite/ld-scripts/defined5.t b/ld/testsuite/ld-scripts/defined5.t
index 189da6b..04daf66 100644
--- a/ld/testsuite/ld-scripts/defined5.t
+++ b/ld/testsuite/ld-scripts/defined5.t
@@ -1,6 +1,6 @@
defined = addr1;
SECTIONS {
- .data.cacheline_aligned : { *(.data.cacheline_aligned) }
+ .text : { *(.text) }
. = ALIGN (0x1000);
.data : { *(.data) }
addr1 = ADDR (.data);