about summary refs log tree commit diff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-07-08 14:26:22 -0700
committerFangrui Song <maskray@google.com>2021-07-08 14:26:22 -0700
commit115d242456de158e698ffb0f9a5fee3118e9e825 (patch)
treeaa9d3aa72fb7c960e0f77fba1ae6f4c494a58312 /sysdeps/ieee754
parentbba4383c6b4db09c84c7a194b5e80978e6c44ee5 (diff)
downloadglibc-115d242456de158e698ffb0f9a5fee3118e9e825.tar.gz
glibc-115d242456de158e698ffb0f9a5fee3118e9e825.tar.xz
glibc-115d242456de158e698ffb0f9a5fee3118e9e825.zip
x86_64: Remove unneeded static PIE check for undefined weak diagnostic
https://sourceware.org/bugzilla/show_bug.cgi?id=21782 dropped an ld
diagnostic for R_X86_64_PC32 referencing an undefined weak symbol in
-pie links.  Arguably keeping the diagnostic like other ports is more
correct, since statically resolving movl foo(%rip), %eax to the
link-time zero address produces a corrupted output.

It turns out that --enable-static-pie builds do not depend on the ld
behavior. GCC generates GOT indirection for weak declarations for
-fPIE/-fPIC, so what ld does with the PC-relative relocation doesn't
really matter.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/ieee754')
0 files changed, 0 insertions, 0 deletions