Browse Source
PR ld/19539 * testsuite/ld-i386/i386.exp: Run pr19539. * testsuite/ld-i386/pr19539.d: New file. * testsuite/ld-i386/pr19539.s: Likewise. * testsuite/ld-i386/pr19539.t: Likewise. * testsuite/ld-x86-64/pr19539.s: Likewise. * testsuite/ld-x86-64/pr19539.t: Likewise. * testsuite/ld-x86-64/pr19539a.d: Likewise. * testsuite/ld-x86-64/pr19539b.d: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.binutils-2_27-branch
10 changed files with 53 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
#as: --32 |
|||
#ld: -pie -m elf_i386 -T pr19539.t |
|||
#readelf: -r --wide |
|||
|
|||
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entries: |
|||
Offset Info Type Sym. Value Symbol's Name |
|||
[0-9a-f]+ +[0-9a-f]+ +R_386_RELATIVE + |
|||
@ -0,0 +1,6 @@ |
|||
.text |
|||
.global _start |
|||
_start: |
|||
.dc.a 0 |
|||
.section .prefix,"a",%progbits |
|||
.dc.a foo |
|||
@ -0,0 +1 @@ |
|||
HIDDEN (foo = .); |
|||
@ -0,0 +1,6 @@ |
|||
.text |
|||
.global _start |
|||
_start: |
|||
.dc.a 0 |
|||
.section .prefix,"a",%progbits |
|||
.dc.a foo |
|||
@ -0,0 +1 @@ |
|||
HIDDEN (foo = .); |
|||
@ -0,0 +1,8 @@ |
|||
#source: pr19539.s |
|||
#as: --64 |
|||
#ld: -pie -m elf_x86_64 -T pr19539.t |
|||
#readelf: -r --wide |
|||
|
|||
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: |
|||
Offset Info Type Symbol's Value Symbol's Name \+ Addend |
|||
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+ |
|||
@ -0,0 +1,8 @@ |
|||
#source: pr19539.s |
|||
#as: --x32 |
|||
#ld: -pie -m elf32_x86_64 -T pr19539.t |
|||
#readelf: -r --wide |
|||
|
|||
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: |
|||
Offset Info Type Sym. Value Symbol's Name \+ Addend |
|||
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+ |
|||
Loading…
Reference in new issue