mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
53120fbb68
Use the Global Offset Table to find the location of main in crt1. With lld the old code would point to main@plt, however ld.bfd fails to link when main is in a shared library. Fix this by using the GOT address to find main as it works with both lld and bfd. Reviewed by: jrtc27 Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45259 |
||
---|---|---|
.. | ||
aarch64 | ||
amd64 | ||
arm | ||
common | ||
i386 | ||
powerpc | ||
powerpc64 | ||
riscv | ||
tests | ||
Makefile | ||
Makefile.inc |