Page MenuHomeFreeBSD

Add an ldscript for amd64 kmods.
ClosedPublic

Authored by markj on Oct 10 2019, 4:07 PM.
Tags
None
Referenced Files
F174661558: D21970.diff
Mon, Oct 5, 1:07 AM
Unknown Object (File)
Mon, Sep 28, 4:03 AM
Unknown Object (File)
Wed, Sep 23, 2:33 AM
Unknown Object (File)
Wed, Sep 23, 2:33 AM
Unknown Object (File)
Wed, Sep 23, 2:29 AM
Unknown Object (File)
Thu, Sep 17, 8:00 AM
Unknown Object (File)
Aug 28 2026, 7:40 PM
Unknown Object (File)
Aug 28 2026, 10:09 AM
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