Page MenuHomeFreeBSD

Add an ldscript for amd64 kmods.
ClosedPublic

Authored by markj on Oct 10 2019, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 1:07 AM
Unknown Object (File)
Nov 14 2023, 8:32 AM
Unknown Object (File)
Nov 10 2023, 10:25 PM
Unknown Object (File)
Oct 13 2023, 7:28 AM
Unknown Object (File)
Oct 9 2023, 9:19 PM
Unknown Object (File)
Sep 16 2023, 10:29 AM
Unknown Object (File)
Sep 6 2023, 1:07 PM
Unknown Object (File)
Sep 6 2023, 1:07 PM
Subscribers
None

Details

Summary

Provide padding for .text* and .rodata* so that memory protections may
be enforced.

This is not perfect: some linker sets are read-only and live in the same
page as writeable linker sets. For now I think it is reasonable to
simply live with this.

In the future it might be desireable to apply a heuristic to the .text
size of a KLD and instead pad to a 2MB boundary so that it gets mapped
with superpages. For instance, we might do this if the size of .text is
greater than 1MB, as it is for zfs.ko.

Diff Detail

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