bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/28311] New: `weak_undef_test` failing with gcc versions newer


From: saldivarcher at gmail dot com
Subject: [Bug gold/28311] New: `weak_undef_test` failing with gcc versions newer than 5.4.0 (Ubuntu 16.04)
Date: Tue, 07 Sep 2021 05:02:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28311

            Bug ID: 28311
           Summary: `weak_undef_test` failing with gcc versions newer than
                    5.4.0 (Ubuntu 16.04)
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: saldivarcher at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

As stated in bug 22755, tests are failing in newer gcc versions, I haven't been
able to find the exact version where the change in gcc happened.

GCC 5.3.0:
# weak_undef_test.s
movl    $no_such_symbol_, %eax

# weak_undef_test.o
f:   b8 00 00 00 00          mov    $0x0,%eax
                        10: R_X86_64_32 no_such_symbol_

# weak_undef_test
4006e5:       b8 00 00 00 00          mov    $0x0,%eax

GCC 9.3.0:
# weak_undef_test.s
movq    no_such_symbol_@GOTPCREL(%rip), %rax

# weak_undef_test.o
f:   48 8b 05 00 00 00 00    mov    0x0(%rip),%rax 
                   12: R_X86_64_REX_GOTPCRELX      no_such_symbol_-0x4

# weak_undef_test
7e8:   48 8b 05 f1 17 00 00    mov    0x17f1(%rip),%rax  # 1fe0
<no_such_symbol_>

So I'm assuming that the way weak symbols resolve have changed, and the test
should probably be changed to reflect that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]