diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-21 08:18:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-21 08:18:49 +0000 |
commit | 2562953678f04d6574d5dffdbc41242e5b487ff5 (patch) | |
tree | 0b11ef922d34d46f76effa8a2073e5145901f474 /ld/testsuite/ld-scripts | |
parent | eefe576e605babfb4b79cd52576c395302245604 (diff) | |
download | gdb-2562953678f04d6574d5dffdbc41242e5b487ff5.zip gdb-2562953678f04d6574d5dffdbc41242e5b487ff5.tar.gz gdb-2562953678f04d6574d5dffdbc41242e5b487ff5.tar.bz2 |
* ld-elf/warn1.d: Specify -Ttext.
* ld-scripts/align.exp (align2a, align2b: Don't run on aout targets.
* ld-scripts/align2.t: Discard all but .text and .data.
* ld-scripts/align2a.d: Accept non-readonly for coff.
* ld-scripts/align2b.d: Likewise.
* lib/ld-lib.exp (is_aout_format): New function.
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/align.exp | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/align2.t | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/align2a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/align2b.d | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/ld/testsuite/ld-scripts/align.exp b/ld/testsuite/ld-scripts/align.exp index dbaaaf3..5d4cd43 100644 --- a/ld/testsuite/ld-scripts/align.exp +++ b/ld/testsuite/ld-scripts/align.exp @@ -35,6 +35,8 @@ if ![ld_simple_link $ld tmpdir/align "-T $srcdir/$subdir/align.t tmpdir/align.o" pass $testname } -run_dump_test align2a -run_dump_test align2b +if ![is_aout_format] { + run_dump_test align2a + run_dump_test align2b +} run_dump_test align2c diff --git a/ld/testsuite/ld-scripts/align2.t b/ld/testsuite/ld-scripts/align2.t index 73818a8..d86f62a 100644 --- a/ld/testsuite/ld-scripts/align2.t +++ b/ld/testsuite/ld-scripts/align2.t @@ -3,4 +3,5 @@ SECTIONS .text : {*(.text)} . = ALIGN(data_align); .data : {*(.data)} + /DISCARD/ : {*(*)} } diff --git a/ld/testsuite/ld-scripts/align2a.d b/ld/testsuite/ld-scripts/align2a.d index 873cfe1..d45cf0e 100644 --- a/ld/testsuite/ld-scripts/align2a.d +++ b/ld/testsuite/ld-scripts/align2a.d @@ -6,7 +6,7 @@ Sections: Idx +Name +Size +VMA +LMA +File +off +Algn +0 +\.text +[^ ]* +0+ +0+ .* - +CONTENTS, +ALLOC, +LOAD, +READONLY, +CODE + +CONTENTS, +ALLOC, +LOAD,.* CODE +1 +\.data +[^ ]* +0+10 +0+10 .* +CONTENTS, +ALLOC, +LOAD, +DATA #pass diff --git a/ld/testsuite/ld-scripts/align2b.d b/ld/testsuite/ld-scripts/align2b.d index 457f04b..05d2a15 100644 --- a/ld/testsuite/ld-scripts/align2b.d +++ b/ld/testsuite/ld-scripts/align2b.d @@ -6,7 +6,7 @@ Sections: Idx +Name +Size +VMA +LMA +File off +Algn +0 +\.text +[^ ]* +0+ +0+ .* - +CONTENTS, +ALLOC, +LOAD, +READONLY, +CODE + +CONTENTS, +ALLOC, +LOAD,.* CODE +1 +\.data +[^ ]* +0+20 +0+20 .* +CONTENTS, +ALLOC, +LOAD, +DATA #pass |