diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64 index 68ab1a2..2fa8757 100644 --- a/sys/conf/ldscript.amd64 +++ b/sys/conf/ldscript.amd64 @@ -59,6 +59,10 @@ SECTIONS .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } .rodata1 : { *(.rodata1) } .eh_frame_hdr : { *(.eh_frame_hdr) } + . = ALIGN(0x100) ; + __start_set_pcpu = . ; + set_pcpu : { *(set_pcpu) } + __stop_set_pcpu = . ; /* Adjust the address for the data segment. We want to adjust up to the same address within the page on the next page up. */ . = DATA_SEGMENT_ALIGN(0x100000, 0x1000); diff --git a/sys/conf/ldscript.i386 b/sys/conf/ldscript.i386 index a94f32f..ccb5b0d 100644 --- a/sys/conf/ldscript.i386 +++ b/sys/conf/ldscript.i386 @@ -55,6 +55,10 @@ SECTIONS .fini : { *(.fini) } =0x9090 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } .rodata1 : { *(.rodata1) } + . = ALIGN(0x100) ; + __start_set_pcpu = . ; + set_pcpu : { *(set_pcpu) } + __stop_set_pcpu = . ; /* Adjust the address for the data segment. We want to adjust up to the same address within the page on the next page up. */ . = ALIGN(0x1000) + (. & (0x1000 - 1)) ;