* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
ld-sh/sh64/gotplt.s: New test.
This commit is contained in:
parent
4989d792c8
commit
ad050da3e6
4 changed files with 29 additions and 0 deletions
|
@ -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.
|
||||
|
|
12
ld/testsuite/ld-sh/sh64/gotplt.d
Normal file
12
ld/testsuite/ld-sh/sh64/gotplt.d
Normal file
|
@ -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
|
4
ld/testsuite/ld-sh/sh64/gotplt.map
Normal file
4
ld/testsuite/ld-sh/sh64/gotplt.map
Normal file
|
@ -0,0 +1,4 @@
|
|||
GLIBC_2.2 {
|
||||
local:
|
||||
xxx;
|
||||
};
|
8
ld/testsuite/ld-sh/sh64/gotplt.s
Normal file
8
ld/testsuite/ld-sh/sh64/gotplt.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
.text
|
||||
.global xxx
|
||||
xxx:
|
||||
ptabs r18, tr0
|
||||
blink tr0, r63
|
||||
.global yyy
|
||||
yyy:
|
||||
movi ((xxx@GOTPLT) & 65535), r1
|
Loading…
Reference in a new issue