Align the start of the kernel .data to a 2MB boundary, prevents ld from merging the text and data PHDRs.
This commit is contained in:
@@ -28,8 +28,8 @@ SECTIONS
|
|||||||
|
|
||||||
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
|
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
|
||||||
|
|
||||||
/* writable data */
|
/* writable data */
|
||||||
. = ALIGN(0x1000);
|
. = ALIGN (0x200000);
|
||||||
__data_start = .;
|
__data_start = .;
|
||||||
.data : { *(.data .data.* .gnu.linkonce.d.*) }
|
.data : { *(.data .data.* .gnu.linkonce.d.*) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user