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
F106216596: D45257.diff
Fri, Dec 27, 8:35 AM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57771
Build 54659: arc lint + arc unit