From d018cd835ccdbfcfbc1e144a836974a9b9c385b6 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Apr 2021 10:55:07 +0200 Subject: x86-64/PE: adjust PR ld/26659 testcase for Cygwin While the testcase put in place by 74edb473c9ec ("PE/Windows x86_64: Fix weak undef symbols after image base change") is fine for MingW, it fails for Cygwin. This is because the default image base is different there (for whatever reason). --- ld/ChangeLog | 5 ++++ ld/testsuite/ld-pe/pr26659-weak-undef-sym.d | 43 ++++++++++++----------------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index a450d9a..93afd53 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2021-04-22 Jan Beulich + + PR ld/26659 + * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin. + 2021-04-21 Nick Clifton * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output diff --git a/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d b/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d index 0b48994..354f6e2 100644 --- a/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d +++ b/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d @@ -4,29 +4,22 @@ #objdump: -d #... -0000000140001000 : - 140001000: 55 push %rbp - 140001001: 48 89 e5 mov %rsp,%rbp - 140001004: 48 83 ec 20 sub \$0x20,%rsp - 140001008: 89 4d 10 mov %ecx,0x10\(%rbp\) - 14000100b: 48 8b 05 ee 0f 00 00 mov 0xfee\(%rip\),%rax # 140002000 <__data_end__> - 140001012: 48 85 c0 test %rax,%rax - 140001015: 74 05 je 14000101c - 140001017: e8 e4 ef ff bf call 100000000 <__size_of_stack_reserve__\+0xffe00000> - 14000101c: 48 8b 05 ed 0f 00 00 mov 0xfed\(%rip\),%rax # 140002010 <.refptr.bar2> - 140001023: 48 85 c0 test %rax,%rax - 140001026: 74 05 je 14000102d - 140001028: e8 d3 ef ff bf call 100000000 <__size_of_stack_reserve__\+0xffe00000> - 14000102d: 8b 45 10 mov 0x10\(%rbp\),%eax - 140001030: 0f af c0 imul %eax,%eax - 140001033: 48 83 c4 20 add \$0x20,%rsp - 140001037: 5d pop %rbp - 140001038: c3 ret - 140001039: 90 nop - 14000103a: 90 nop - 14000103b: 90 nop - 14000103c: 90 nop - 14000103d: 90 nop - 14000103e: 90 nop - 14000103f: 90 nop +00000001[04]0[04]01000 : + *[0-9a-f]+: 55 push %rbp + *[0-9a-f]+: 48 89 e5 mov %rsp,%rbp + *[0-9a-f]+: 48 83 ec 20 sub \$0x20,%rsp + *[0-9a-f]+: 89 4d 10 mov %ecx,0x10\(%rbp\) + *[0-9a-f]+: 48 8b 05 ee 0f 00 00 mov 0xfee\(%rip\),%rax # [0-9a-f]+ <__data_end__> + *[0-9a-f]+: 48 85 c0 test %rax,%rax + *[0-9a-f]+: 74 05 je [0-9a-f]+ + *[0-9a-f]+: e8 e4 ef [fb]f [fb]f call 100000000 <__size_of_stack_reserve__\+0xffe00000> + *[0-9a-f]+: 48 8b 05 ed 0f 00 00 mov 0xfed\(%rip\),%rax # [0-9a-f]+ <.refptr.bar2> + *[0-9a-f]+: 48 85 c0 test %rax,%rax + *[0-9a-f]+: 74 05 je [0-9a-f]+ + *[0-9a-f]+: e8 d3 ef [fb]f [fb]f call 100000000 <__size_of_stack_reserve__\+0xffe00000> + *[0-9a-f]+: 8b 45 10 mov 0x10\(%rbp\),%eax + *[0-9a-f]+: 0f af c0 imul %eax,%eax + *[0-9a-f]+: 48 83 c4 20 add \$0x20,%rsp + *[0-9a-f]+: 5d pop %rbp + *[0-9a-f]+: c3 ret * #pass -- cgit v1.1