summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-03-05 19:27:34 +0000
committerNathan Sidwell <nathan@codesourcery.com>2004-03-05 19:27:34 +0000
commit4a6185920beb88478329070721f82e895e381b56 (patch)
tree664c311c5c47dfa27f5a56375c3b4175dec6cd93
parent70968de86b2ddef3d4b941e9eb0cf804488a5fd1 (diff)
downloadbinutils-redhat-4a6185920beb88478329070721f82e895e381b56.tar.gz
* ld-scripts/size-1.d: Add bigendian regexps.
* ld-scripts/size-2.d: Set --wide for readelf.
-rw-r--r--ld/testsuite/ChangeLog3
-rw-r--r--ld/testsuite/ld-scripts/size-1.d9
-rw-r--r--ld/testsuite/ld-scripts/size-2.d14
3 files changed, 15 insertions, 11 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 18c66f4612..9d755d3a04 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
+ * ld-scripts/size-1.d: Add bigendian regexps.
+ * ld-scripts/size-2.d: Set --wide for readelf.
+
* ld-scripts/size.exp: New.
* ld-scripts/size-[12].{d,s,t}: New.
diff --git a/ld/testsuite/ld-scripts/size-1.d b/ld/testsuite/ld-scripts/size-1.d
index 667f5317db..8f36407d3a 100644
--- a/ld/testsuite/ld-scripts/size-1.d
+++ b/ld/testsuite/ld-scripts/size-1.d
@@ -4,13 +4,18 @@
.*: file format .*
+#...
Contents of section \.text:
0+00 (01)?000000(01)? (02)?000000(02)? ........
+#...
Contents of section \.data:
0+08 (03)?000000(03)? (04)?000000(04)? (05)?000000(05)? ............
+#...
Contents of section \.tdata:
- 0+24 (06)?000000 07000000 08000000 09000000 ................
- 0+34 (0a)?000000 ....
+ 0+24 (06)?000000(06)? (07)?000000(07)? (08)?000000(08)? (09)?000000(09)? ................
+ 0+34 (0a)?000000(0a)? ....
+#...
Contents of section \.map:
0+38 (08)?000000(08)? (0c)?000000(0c)? (10)?000000(10)? (14)?000000(14)? ................
0+48 (18)?000000(18)? ....
+#...
diff --git a/ld/testsuite/ld-scripts/size-2.d b/ld/testsuite/ld-scripts/size-2.d
index 3cbfb447d9..8b56c7a1e6 100644
--- a/ld/testsuite/ld-scripts/size-2.d
+++ b/ld/testsuite/ld-scripts/size-2.d
@@ -1,17 +1,13 @@
#source: size-2.s
#ld: -T size-2.t
-#readelf: -l
+#readelf: -l --wide
#...
Program Headers:
- Type Offset VirtAddr PhysAddr
- FileSiz MemSiz Flags Align
- PHDR 0x[0-9a-f]+ 0x0+0000 0x0+0000
- 0x[0-9a-f]+ 0x[0-9a-f]+ R .
- LOAD 0x[0-9a-f]+ 0x0+0000 0x0+0000
- 0x0+0030 0x0+0030 R [0-9a-f]+
- TLS 0x[0-9a-f]+ 0x0+0008 0x0+0008
- 0x0+0014 0x0+002c R [0-9a-f]+
+ Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
+ PHDR 0x[0-9a-f]+ 0x0+0000 0x0+0000 0x[0-9a-f]+ 0x[0-9a-f]+ R 0x[0-9a-f]+
+ LOAD 0x[0-9a-f]+ 0x0+0000 0x0+0000 0x0+0030 0x0+0030 R 0x[0-9a-f]+
+ TLS 0x[0-9a-f]+ 0x0+0008 0x0+0008 0x0+0014 0x0+002c R 0x[0-9a-f]+
Section to Segment mapping:
Segment Sections...