Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/ldscript.kmod.amd64
Show All 28 Lines | |||||
/* | /* | ||||
* Coalesce executable and read-only sections, and pad to page alignment so | * Coalesce executable and read-only sections, and pad to page alignment so | ||||
* that memory protections can be strictly enforced. | * that memory protections can be strictly enforced. | ||||
*/ | */ | ||||
SECTIONS | SECTIONS | ||||
{ | { | ||||
.plt : | |||||
{ | |||||
*(.plt) | |||||
} | |||||
.text : | .text : | ||||
{ | { | ||||
*(.text .text.*) | *(.text .text.*) | ||||
. = ALIGN(CONSTANT(COMMONPAGESIZE)); | . = ALIGN(CONSTANT(COMMONPAGESIZE)); | ||||
} | } | ||||
.rodata : | .rodata : | ||||
{ | { | ||||
*(.rodata .rodata.*) | *(.rodata .rodata.*) | ||||
. = ALIGN(CONSTANT(COMMONPAGESIZE)); | . = ALIGN(CONSTANT(COMMONPAGESIZE)); | ||||
} | } | ||||
} | } |