bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/32112] Weak undefined doesn't work


From: hjl.tools at gmail dot com
Subject: [Bug gold/32112] Weak undefined doesn't work
Date: Thu, 22 Aug 2024 17:03:52 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|aarch64                     |

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
weak_undef_test always fails when GOT is used on x86-64:

[hjl@gnu-cfl-3 testsuite]$ `echo g++ -DHAVE_CONFIG_H -I.
-I/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite -I.. 
-I/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite
-I/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite/..
-I/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite/../../include
-I/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite/../../elfcpp -I..
-DLOCALEDIR="\"/usr/local/share/locale\""   -W -Wall    -Wstack-usage=262144
-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -O2 -g  
-fcf-protection      | sed -e 's/\([^ ]*\)\(.*\)/\1 -Bgcctestdir\/\2/' -e
's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -MT weak_undef_test.o -MD -MP -MF
.deps/weak_undef_test.Tpo -c -o weak_undef_test.o
/export/gnu/import/git/gitlab/x86-binutils/gold/testsuite/weak_undef_test.cc
-fPIC
[hjl@gnu-cfl-3 testsuite]$ gcc -Wl,-R,alt  -o weak_undef_test weak_undef_test.o
-L . weak_undef_lib.so
[hjl@gnu-cfl-3 testsuite]$ ./weak_undef_test
FAILED weak undef test 4: &no_such_symbol_ is not NULL
[hjl@gnu-cfl-3 testsuite]$ 

Since aarch64 always uses GOT, this test always fails on aarch64.

-- 
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]