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)
Tue, Dec 3, 6:04 AM
Unknown Object (File)
Fri, Nov 29, 10:44 AM
Unknown Object (File)
Nov 25 2024, 12:16 PM
Unknown Object (File)
Nov 25 2024, 10:01 AM
Unknown Object (File)
Nov 21 2024, 5:13 PM
Unknown Object (File)
Nov 21 2024, 4:12 PM
Unknown Object (File)
Nov 21 2024, 1:52 AM
Unknown Object (File)
Nov 20 2024, 9:12 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