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:
Alex Smith
2012-06-24 17:19:48 +01:00
parent acda52f5e9
commit 035825cdfc
+2 -2
View File
@@ -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.*) }