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
Unknown Object (File)
Fri, Sep 11, 4:44 PM
Unknown Object (File)
Wed, Sep 9, 12:03 AM
Unknown Object (File)
Mon, Sep 7, 8:08 AM
Unknown Object (File)
Sat, Sep 5, 4:27 AM
Unknown Object (File)
Fri, Sep 4, 8:40 PM
Unknown Object (File)
Wed, Sep 2, 11:01 PM
Unknown Object (File)
Mon, Aug 31, 11:04 PM
Unknown Object (File)
Mon, Aug 24, 9:49 PM
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