about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/test-float-libmvec-cosf-avx.c
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2022-11-17 15:13:08 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-11-21 11:25:35 -0300
commit59aa41585f668b70b86a8e2617057da08f3291cc (patch)
tree5b13f629a5e2cd85ebbd5e8250cc63a030d3db5d /sysdeps/x86_64/fpu/test-float-libmvec-cosf-avx.c
parenteb4181e9f4a512de37dad4ba623c921671584dea (diff)
downloadglibc-59aa41585f668b70b86a8e2617057da08f3291cc.tar.gz
glibc-59aa41585f668b70b86a8e2617057da08f3291cc.tar.xz
glibc-59aa41585f668b70b86a8e2617057da08f3291cc.zip
i386: Avoid rely on linker optimization to avoid relocation
lld does not implement all the linker optimization to avoid the GOT
relocation as done by binutils (bfd/elf32-i386.c:elf_i386_convert_load_reloc).
The current 'movl main@GOT(%ebx), %eax' will then create a GOT
relocation when building with lld, which make static-pie status to
not being able to start the provided main function.

The change uses a __wrap_main local symbol, which in turn calls main
(similar as used by aarch64 and s390x).

Checked on i686-linux-gnu with binutils and lld.
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'sysdeps/x86_64/fpu/test-float-libmvec-cosf-avx.c')
0 files changed, 0 insertions, 0 deletions