Page MenuHomeFreeBSD

Apply linker scripts to firmware files.
ClosedPublic

Authored by markj on Oct 23 2019, 2:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 20, 5:11 AM
Unknown Object (File)
Thu, Oct 16, 8:09 PM
Unknown Object (File)
Thu, Oct 16, 8:09 PM
Unknown Object (File)
Thu, Oct 16, 8:09 PM
Unknown Object (File)
Thu, Oct 16, 10:28 AM
Unknown Object (File)
Sep 22 2025, 1:33 PM
Unknown Object (File)
Sep 11 2025, 7:36 PM
Unknown Object (File)
Sep 3 2025, 10:17 PM
Subscribers
None

Details

Summary

Use a separate make variable to specify the linker script, since we
don't want to specify a linker script when generating .fwo files.

Firmware modules end up containing a small amount of code after
being linked; this change ensures that the amd64 linker script is
used to insert padding, to avoid the creation of writeable, executable
mappings when the module is loaded.

Test Plan

GENERIC builds on amd64 and i386.

Diff Detail

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