diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-02-02 06:36:52 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-02-02 06:36:52 -0800 |
commit | 6ba2af251c40aea2483b3c9666667af364e68495 (patch) | |
tree | 20a49db306fa72221af45c2600dc1b2b226ee8fa /ld/testsuite/ld-x86-64/pr18591.d | |
parent | 85fabe715c441e1c90fe913e2a6d65f0e487e5e8 (diff) | |
download | gdb-6ba2af251c40aea2483b3c9666667af364e68495.zip gdb-6ba2af251c40aea2483b3c9666667af364e68495.tar.gz gdb-6ba2af251c40aea2483b3c9666667af364e68495.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr18591.d')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr18591.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr18591.d b/ld/testsuite/ld-x86-64/pr18591.d new file mode 100644 index 0000000..9f60622 --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr18591.d @@ -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 |