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)
Jan 21 2024, 5:11 AM
Unknown Object (File)
Dec 22 2023, 11:06 PM
Unknown Object (File)
Dec 13 2023, 2:20 PM
Unknown Object (File)
Dec 1 2023, 1:22 AM
Unknown Object (File)
Nov 3 2023, 10:06 AM
Unknown Object (File)
Oct 8 2023, 5:50 AM
Unknown Object (File)
Sep 24 2023, 3:00 PM
Unknown Object (File)
Aug 17 2023, 8:11 AM
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