Page MenuHomeFreeBSD

retire arm64 kernel module linker workaround
ClosedPublic

Authored by emaste on Jun 22 2017, 2:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:27 AM
Unknown Object (File)
Dec 19 2023, 12:59 PM
Unknown Object (File)
Aug 12 2023, 9:13 PM
Unknown Object (File)
Aug 2 2023, 9:58 AM
Unknown Object (File)
Jun 26 2023, 1:38 PM
Unknown Object (File)
May 26 2023, 7:57 PM
Unknown Object (File)
Feb 15 2023, 12:36 PM
Unknown Object (File)
Nov 28 2022, 9:55 AM
Subscribers
None

Details

Summary

Relocatable linking in aarch64 ld from binutils 2.25.1 does not work. The linker corrupts the references to the external symbols which are defined by other object in the linking set and should therefore lose the GOT entry.

The problem is fixed in later versions of GNU ld and does not exist in the in-tree lld linker that we now use by default for arm64, so the workaround can be removed.

Test Plan

Install on OverDrive 1000 a kernel + modules built with this change, verify modules can be loaded and operate correctly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 22 2017, 2:53 PM
This revision was automatically updated to reflect the committed changes.