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)
Wed, Jan 29, 5:34 PM
Unknown Object (File)
Thu, Jan 23, 6:40 AM
Unknown Object (File)
Dec 24 2024, 12:37 PM
Unknown Object (File)
Nov 29 2024, 10:01 AM
Unknown Object (File)
Oct 30 2024, 5:00 PM
Unknown Object (File)
Oct 30 2024, 5:00 PM
Unknown Object (File)
Oct 30 2024, 5:00 PM
Unknown Object (File)
Oct 30 2024, 3:16 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