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)
Oct 26 2024, 8:11 AM
Unknown Object (File)
Oct 26 2024, 5:58 AM
Unknown Object (File)
Oct 4 2024, 2:01 AM
Unknown Object (File)
Sep 30 2024, 9:36 AM
Unknown Object (File)
Sep 23 2024, 9:28 PM
Unknown Object (File)
Sep 23 2024, 4:50 PM
Unknown Object (File)
Sep 21 2024, 6:58 PM
Unknown Object (File)
Sep 20 2024, 10:15 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