FreeBSD/src 1d9eae9 (r353729)sys/kern link_elf_obj.c

Apply mapping protections to .o kernel modules.

Use the section flags to derive mapping protections.  When multiple
sections overlap within a page, the union of their protections must be
applied.  With r353701 the .text and .rodata sections are padded to
ensure that this does not happen on amd64.

Reviewed by:    kib
MFC after:      1 month
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D21896
DeltaFile
+121-5sys/kern/link_elf_obj.c
+121-51 files

UnifiedSplitRaw