[PATCH] Update sh/sh64-elf ld testsuite (commited)

Kaz Kojima kkojima@rr.iij4u.or.jp
Tue Jan 11 23:58:00 GMT 2005


Hi,

Some ld tests for sh-elf and sh64-elf fail with the changes
of dynamic symbols which are defined by linker.  I've checked
the appended patch in as obvious.

Regards,
	kaz
--
2005-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* ld-sh/shared-1.d: Update for changed dynamic syms.
	* ld-sh/sh64/gotplt.d: Likewise.
	* ld-sh/sh64/init-cmpct.d: Likewise.
	* ld-sh/sh64/init-media.d: Likewise.
	* ld-sh/sh64/init64.d: Likewise.

diff -u3prN 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	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/shared-1.d	Tue Jan 11 20:58:20 2005
@@ -13,10 +13,10 @@
 
 Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries:
 .*
-00000220  000000a5 R_SH_RELATIVE +00000224
+000001f8  000000a5 R_SH_RELATIVE +000001fc
 
 Hex dump of section '\.rela\.text':
-  0x0000020c          00000224 000000a5 00000220 .*
+  0x000001e4          000001fc 000000a5 000001f8 .*
 
 Hex dump of section '\.text':
-  0x00000218          00000224 00090009 00090009 .*
+  0x000001f0          000001fc 00090009 00090009 .*
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/gotplt.d LOCAL/src/ld/testsuite/ld-sh/sh64/gotplt.d
--- ORIG/src/ld/testsuite/ld-sh/sh64/gotplt.d	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/gotplt.d	Tue Jan 11 21:00:25 2005
@@ -7,6 +7,6 @@
 # Make sure that gotplt relocations of forced local symbols
 # use the GOT.
 
-Relocation section '\.rela\.dyn' at offset 0x29c contains 1 entries:
+Relocation section '\.rela\.dyn' at offset 0x270 contains 1 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-000003cc  000000a5 R_SH_RELATIVE                                000002a8
+0000039c  000000a5 R_SH_RELATIVE                                0000027c
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/init-cmpct.d LOCAL/src/ld/testsuite/ld-sh/sh64/init-cmpct.d
--- ORIG/src/ld/testsuite/ld-sh/sh64/init-cmpct.d	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/init-cmpct.d	Tue Jan 11 21:02:15 2005
@@ -7,14 +7,14 @@
 # Make sure that the lsb of DT_INIT and DT_FINI entries is not set
 # when _init and _fini are SHcompact code.
 
-Dynamic section at offset 0x250 contains 8 entries:
+Dynamic section at offset 0x228 contains 8 entries:
   Tag        Type                         Name/Value
- 0x0000000c \(INIT\)                       0x240
- 0x0000000d \(FINI\)                       0x248
+ 0x0000000c \(INIT\)                       0x216
+ 0x0000000d \(FINI\)                       0x21e
  0x00000004 \(HASH\)                       0x94
- 0x00000005 \(STRTAB\)                     0x1d4
- 0x00000006 \(SYMTAB\)                     0xe4
- 0x0000000a \(STRSZ\)                      107 \(bytes\)
+ 0x00000005 \(STRTAB\)                     0x1c0
+ 0x00000006 \(SYMTAB\)                     0xe0
+ 0x0000000a \(STRSZ\)                      85 \(bytes\)
  0x0000000b \(SYMENT\)                     16 \(bytes\)
  0x00000000 \(NULL\)                       0x0
 
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/init-media.d LOCAL/src/ld/testsuite/ld-sh/sh64/init-media.d
--- ORIG/src/ld/testsuite/ld-sh/sh64/init-media.d	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/init-media.d	Tue Jan 11 21:03:42 2005
@@ -7,13 +7,13 @@
 # Make sure that the lsb of DT_INIT and DT_FINI entries is set
 # when _init and _fini are SHmedia code.
 
-Dynamic section at offset 0x260 contains 8 entries:
+Dynamic section at offset 0x238 contains 8 entries:
   Tag        Type                         Name/Value
- 0x0000000c \(INIT\)                       0x241
- 0x0000000d \(FINI\)                       0x251
+ 0x0000000c \(INIT\)                       0x217
+ 0x0000000d \(FINI\)                       0x227
  0x00000004 \(HASH\)                       0x94
- 0x00000005 \(STRTAB\)                     0x1d4
- 0x00000006 \(SYMTAB\)                     0xe4
- 0x0000000a \(STRSZ\)                      107 \(bytes\)
+ 0x00000005 \(STRTAB\)                     0x1c0
+ 0x00000006 \(SYMTAB\)                     0xe0
+ 0x0000000a \(STRSZ\)                      85 \(bytes\)
  0x0000000b \(SYMENT\)                     16 \(bytes\)
  0x00000000 \(NULL\)                       0x0
diff -u3prN ORIG/src/ld/testsuite/ld-sh/sh64/init64.d LOCAL/src/ld/testsuite/ld-sh/sh64/init64.d
--- ORIG/src/ld/testsuite/ld-sh/sh64/init64.d	Fri Jul  2 20:08:38 2004
+++ LOCAL/src/ld/testsuite/ld-sh/sh64/init64.d	Tue Jan 11 21:05:05 2005
@@ -7,13 +7,13 @@
 # Make sure that the lsb of DT_INIT and DT_FINI entries is set
 # when _init and _fini are SHmedia code.
 
-Dynamic section at offset 0x330 contains 8 entries:
+Dynamic section at offset 0x300 contains 8 entries:
   Tag        Type                         Name/Value
- 0x000000000000000c \(INIT\)               0x30d
- 0x000000000000000d \(FINI\)               0x31d
+ 0x000000000000000c \(INIT\)               0x2df
+ 0x000000000000000d \(FINI\)               0x2ef
  0x0000000000000004 \(HASH\)               0xe8
- 0x0000000000000005 \(STRTAB\)             0x2a0
+ 0x0000000000000005 \(STRTAB\)             0x288
  0x0000000000000006 \(SYMTAB\)             0x138
- 0x000000000000000a \(STRSZ\)              107 \(bytes\)
+ 0x000000000000000a \(STRSZ\)              85 \(bytes\)
  0x000000000000000b \(SYMENT\)             24 \(bytes\)
  0x0000000000000000 \(NULL\)               0x0



More information about the Binutils mailing list