This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld include test
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Sat, 26 Jul 2008 10:52:35 +0930
- Subject: ld include test
More tweaks. .4byte is only available for ELF, and a couple of
non-ELF targets. AOUT generally puts data immediately after text.
* ld-scripts/include.exp: Don't run test for aout.
* ld-scripts/include.s: Use .fill rather than .4byte.
* ld-scripts/include-1.d: Adjust.
Index: ld/testsuite/ld-scripts/include-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/include-1.d,v
retrieving revision 1.2
diff -u -p -r1.2 include-1.d
--- ld/testsuite/ld-scripts/include-1.d 21 Jul 2008 08:38:35 -0000 1.2
+++ ld/testsuite/ld-scripts/include-1.d 24 Jul 2008 07:22:19 -0000
@@ -9,5 +9,5 @@
Sections:
Idx +Name +Size +VMA +LMA +File off +Algn +Flags
- 0 .text 0+000000c 0+0000000 0+0000000 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD,.*CODE
- 1 .data 0+000000c 0+0100000 0+0100000 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD, DATA
+ 0 .text 0+0000020 0+0000000 0+0000000 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD,.*CODE
+ 1 .data 0+0000010 0+0100000 0+0100000 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD, DATA
Index: ld/testsuite/ld-scripts/include.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/include.exp,v
retrieving revision 1.1
diff -u -p -r1.1 include.exp
--- ld/testsuite/ld-scripts/include.exp 6 Jul 2008 13:38:37 -0000 1.1
+++ ld/testsuite/ld-scripts/include.exp 24 Jul 2008 07:22:19 -0000
@@ -20,6 +20,10 @@
load_lib ld-lib.exp
+if [is_aout_format] {
+ return
+}
+
set old_ldflags $LDFLAGS
if { [istarget spu*-*-*] } {
set LDFLAGS "$LDFLAGS --no-overlays"
Index: ld/testsuite/ld-scripts/include.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/include.s,v
retrieving revision 1.2
diff -u -p -r1.2 include.s
--- ld/testsuite/ld-scripts/include.s 21 Jul 2008 08:38:35 -0000 1.2
+++ ld/testsuite/ld-scripts/include.s 24 Jul 2008 07:22:19 -0000
@@ -1,9 +1,5 @@
.text
- .4byte 0x11223344
- .4byte 0x55667788
- .4byte 0x99aabbcc
+ .fill 32,1,0x12
.data
- .4byte 0x01020304
- .4byte 0x05060708
- .4byte 0x090a0b0c
+ .fill 16,1,0x34
--
Alan Modra
Australia Development Lab, IBM