* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
authorStephen Clarke <stephen.clarke@earthling.net>
Wed, 2 Oct 2002 21:56:50 +0000 (21:56 +0000)
committerStephen Clarke <stephen.clarke@earthling.net>
Wed, 2 Oct 2002 21:56:50 +0000 (21:56 +0000)
ld-sh/sh64/gotplt.s: New test.

ld/testsuite/ChangeLog
ld/testsuite/ld-sh/sh64/gotplt.d [new file with mode: 0644]
ld/testsuite/ld-sh/sh64/gotplt.map [new file with mode: 0644]
ld/testsuite/ld-sh/sh64/gotplt.s [new file with mode: 0644]

index 2e12b778702dfca6781f84ee8971c04d2402dec6..f48490f114c31c98430dab301fc5d6dc1df0b324 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-02  Stephen Clarke <stephen.clarke@superh.com>
+
+       * ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
+       ld-sh/sh64/gotplt.s: New test.
+       
 2002-10-02  Stephen Clarke <stephen.clarke@superh.com>
        * ld-sh/sh64/cmpct1.sd : Fix linked file name.
        * ld-sh/sh64/crange3.dd: Likewise.
diff --git a/ld/testsuite/ld-sh/sh64/gotplt.d b/ld/testsuite/ld-sh/sh64/gotplt.d
new file mode 100644 (file)
index 0000000..3339a65
--- /dev/null
@@ -0,0 +1,12 @@
+#source: gotplt.s
+#as: --abi=32 --isa=SHmedia
+#ld: -shared -mshelf32 --version-script=$srcdir/$subdir/gotplt.map
+#readelf: -r
+#target: sh64-*-elf
+
+# Make sure that gotplt relocations of forced local symbols
+# use the GOT.
+
+Relocation section '\.rela\.dyn' at offset 0x3fc contains 1 entries:
+ Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
+0000052c  000000a5 R_SH_RELATIVE                                00000408
diff --git a/ld/testsuite/ld-sh/sh64/gotplt.map b/ld/testsuite/ld-sh/sh64/gotplt.map
new file mode 100644 (file)
index 0000000..a27c22c
--- /dev/null
@@ -0,0 +1,4 @@
+GLIBC_2.2 {
+  local:
+    xxx;
+};
diff --git a/ld/testsuite/ld-sh/sh64/gotplt.s b/ld/testsuite/ld-sh/sh64/gotplt.s
new file mode 100644 (file)
index 0000000..45ed0b2
--- /dev/null
@@ -0,0 +1,8 @@
+       .text
+       .global xxx
+xxx:
+       ptabs   r18, tr0
+       blink   tr0, r63
+       .global yyy
+yyy:
+       movi    ((xxx@GOTPLT) & 65535), r1