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)
Wed, Jan 29, 1:22 PM
Unknown Object (File)
Jan 9 2025, 11:23 PM
Unknown Object (File)
Dec 11 2024, 11:39 PM
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
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26979
Build 25279: arc lint + arc unit