Page MenuHomeFreeBSD

stand/efi: Fix for binutils when targeting arm64
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
F97482616: D45257.id138887.diff
Sun, Sep 29, 3:25 PM
F97482605: D45257.id138758.diff
Sun, Sep 29, 3:25 PM
F97451983: D45257.diff
Sun, Sep 29, 10:39 AM
F97432863: D45257.id138758.diff
Sun, Sep 29, 7:09 AM
Unknown Object (File)
Sat, Sep 28, 8:51 AM
Unknown Object (File)
Fri, Sep 27, 11:09 PM
Unknown Object (File)
Thu, Sep 26, 6:57 AM
Unknown Object (File)
Thu, Sep 26, 2:19 AM
Subscribers

Details

Summary

When linking with ld.bfd it complain with the following:

/usr/local/bin/aarch64-unknown-freebsd14.0-ld: start.o: relocation
R_AARCH64_ABS32 against `__data_size' can not be used when making a
shared object

Fix this by marking the __data_size with ABSOLUTE. This returns a
non-relocatable value which appears to be the same behaviour of lld.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable