Browse Source
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.ezannoni_pie-20030916-branch
6 changed files with 46 additions and 2 deletions
@ -0,0 +1,20 @@ |
|||
#source: textrel1.s |
|||
#source: textrel2.s |
|||
#as: -little |
|||
#ld: -shared -EL |
|||
#readelf: -d |
|||
#target: sh*-*-elf sh*-*-linux* sh*-*-netbsd* |
|||
|
|||
# Make sure that there is no unnecessary DT_TEXTREL entry. |
|||
|
|||
Dynamic segment at offset 0x[0-9a-f]+ contains 9 entries: |
|||
Tag Type Name/Value |
|||
0x00000004 \(HASH\) 0x[0-9a-f]+ |
|||
0x00000005 \(STRTAB\) 0x[0-9a-f]+ |
|||
0x00000006 \(SYMTAB\) 0x[0-9a-f]+ |
|||
0x0000000a \(STRSZ\) [0-9]+ \(bytes\) |
|||
0x0000000b \(SYMENT\) 16 \(bytes\) |
|||
0x00000007 \(RELA\) 0x[0-9a-f]+ |
|||
0x00000008 \(RELASZ\) 12 \(bytes\) |
|||
0x00000009 \(RELAENT\) 12 \(bytes\) |
|||
0x00000000 \(NULL\) 0x0 |
|||
@ -0,0 +1,11 @@ |
|||
.text |
|||
.align 5 |
|||
.globl f |
|||
f: |
|||
mov.l .L1,r0 |
|||
rts |
|||
nop |
|||
.align 2 |
|||
.L1: .long g - f |
|||
.long foo@GOT |
|||
|
|||
@ -0,0 +1,7 @@ |
|||
.text |
|||
.align 5 |
|||
.globl g |
|||
.hidden g |
|||
g: |
|||
rts |
|||
nop |
|||
Loading…
Reference in new issue