x86-64/PE: adjust PR ld/26659 testcase for Cygwin
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 08:55:07 +0000 (10:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 08:55:07 +0000 (10:55 +0200)
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
ld/testsuite/ld-pe/pr26659-weak-undef-sym.d

index a450d9a0e44127c4a73d5afd9984fe95dfd8669e..93afd53bcc9f86e2a02752a5c38cd9fef4842f1b 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-22  Jan Beulich  <jbeulich@suse.com>
+
+       PR ld/26659
+       * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
+
 2021-04-21  Nick Clifton  <nickc@redhat.com>
 
        * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
index 0b48994877d18b616be2c3da3b8848b6b51fb8af..354f6e20ae2a06e6335978a637595cbedc1395e7 100644 (file)
@@ -4,29 +4,22 @@
 #objdump: -d
 
 #...
-0000000140001000 <foo>:
-   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 <foo\+0x1c>
-   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 <foo\+0x2d>
-   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 <foo>:
+ *[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]+ <foo\+0x1c>
+ *[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]+ <foo\+0x2d>
+ *[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