This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[pacth committed] SH: Update a few ld tests in ld-sh
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: binutils at sourceware dot org
- Date: Fri, 23 Mar 2007 09:03:05 +0900 (JST)
- Subject: [pacth committed] SH: Update a few ld tests in ld-sh
Hi,
ld-sh/ld-r-1 and ld-sh/shared-1 need tweaks because readelf changes
the format slightly when dumping the contents of section and warns
if the section has relocations which have not been applied yet.
Tested on sh-elf and sh4-unknown-linux-gnu. Committed.
Regards,
kaz
--
2007-03-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* ld-sh/ld-r-1.d: Update.
* ld-sh/shared-1.d: Likewise.
diff -uprN ORIG/src/ld/testsuite/ld-sh/ld-r-1.d LOCAL/src/ld/testsuite/ld-sh/ld-r-1.d
--- ORIG/src/ld/testsuite/ld-sh/ld-r-1.d 2002-10-15 03:45:02.000000000 +0900
+++ LOCAL/src/ld/testsuite/ld-sh/ld-r-1.d 2007-03-22 14:37:57.000000000 +0900
@@ -17,7 +17,8 @@ Relocation section '\.rela\.text' at off
00000008 00000101 R_SH_DIR32 +00000000 +\.text +\+ 0
Hex dump of section '\.text':
- 0x00000000 0000000c 00090009 00090009 .*
+.*
+ 0x00000000 09000900 09000900 0c000000 .*
Hex dump of section '\.rela\.text':
- 0x00000000 00000000 00000101 00000008 .*
+ 0x00000000 08000000 01010000 00000000 .*
diff -uprN ORIG/src/ld/testsuite/ld-sh/shared-1.d LOCAL/src/ld/testsuite/ld-sh/shared-1.d
--- ORIG/src/ld/testsuite/ld-sh/shared-1.d 2006-10-17 22:41:48.000000000 +0900
+++ LOCAL/src/ld/testsuite/ld-sh/shared-1.d 2007-03-22 20:39:15.000000000 +0900
@@ -16,7 +16,8 @@ Relocation section '\.rela\.text' at off
0000019c +[0-9a-f]+ R_SH_RELATIVE +000001a0
Hex dump of section '\.rela\.text':
- 0x00000188 000001a0 000000a5 0000019c .*
+ 0x00000188 9c010000 a5000000 a0010000 .*
Hex dump of section '\.text':
- 0x00000194 000001a0 00090009 00090009 .*
+.*
+ 0x00000194 09000900 09000900 a0010000 .*