aboutsummaryrefslogtreecommitdiff
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
commit68715859c7df9bce56e502bd297a3993a9592786 (patch)
tree2bfdb28b4cf7bc5f8755fbdfbe9a47b0f8921bc5
parent1198ecbe719975c4549f5cae42f1150e6f75a950 (diff)
downloadgdb-68715859c7df9bce56e502bd297a3993a9592786.zip
gdb-68715859c7df9bce56e502bd297a3993a9592786.tar.gz
gdb-68715859c7df9bce56e502bd297a3993a9592786.tar.bz2
* 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 18c66f4..9d755d3 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 667f531..8f36407 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 3cbfb44..8b56c7a 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...