From: Alan Modra Date: Thu, 10 Feb 2011 08:04:22 +0000 (+0000) Subject: * ld-scripts/defined.exp: Don't run defined5 for AOUT. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ea6c5ce90d6009f4b883b1003fec16521b5c5756;p=deliverable%2Fbinutils-gdb.git * ld-scripts/defined.exp: Don't run defined5 for AOUT. * ld-scripts/defined5.s: Use .text for "defined" section. * ld-scripts/defined5.t: Adjust. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9c36f6d45a..3796f1740a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2011-02-10 Alan Modra + * 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 10f14daf83..bfee1021e7 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 592e54cea1..9dd58d693b 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 189da6b6bf..04daf6606d 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);