Add a testcase for PR ld/18591
PR ld/18591 * testsuite/ld-x86-64/pr18591.d: New file. * testsuite/ld-x86-64/pr18591.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
This commit is contained in:
parent
85fabe715c
commit
6ba2af251c
4 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/18591
|
||||
* testsuite/ld-x86-64/pr18591.d: New file.
|
||||
* testsuite/ld-x86-64/pr18591.s: Likewise.
|
||||
* testsuite/ld-x86-64/x86-64.exp: Run pr18591.
|
||||
|
||||
2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/19553
|
||||
|
|
12
ld/testsuite/ld-x86-64/pr18591.d
Normal file
12
ld/testsuite/ld-x86-64/pr18591.d
Normal file
|
@ -0,0 +1,12 @@
|
|||
#as: --64
|
||||
#ld: -melf_x86_64 -shared -z max-page-size=0x200000
|
||||
#objdump: -dw
|
||||
|
||||
.*: +file format .*
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
[a-f0-9]+ <bar>:
|
||||
[ ]*[a-f0-9]+: 48 8b 05 ([0-9a-f]{2} ){4} mov 0x[a-f0-9]+\(%rip\),%rax # [a-f0-9]+ <_DYNAMIC\+0x[a-f0-9]+>
|
||||
#pass
|
8
ld/testsuite/ld-x86-64/pr18591.s
Normal file
8
ld/testsuite/ld-x86-64/pr18591.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
.hidden foo
|
||||
.comm pad,0x80000000,8
|
||||
.comm foo,8,8
|
||||
.text
|
||||
.globl bar
|
||||
.type bar, @function
|
||||
bar:
|
||||
movq foo@GOTPCREL(%rip), %rax
|
|
@ -353,6 +353,7 @@ run_dump_test "pr19013-x32"
|
|||
run_dump_test "pr19013-nacl"
|
||||
run_dump_test "pr19162"
|
||||
run_dump_test "pr19175"
|
||||
run_dump_test "pr18591"
|
||||
|
||||
# Add $PLT_CFLAGS if PLT is expected.
|
||||
global PLT_CFLAGS
|
||||
|
|
Loading…
Reference in a new issue