Index: sys/conf/ldscript.arm =================================================================== --- sys/conf/ldscript.arm +++ sys/conf/ldscript.arm @@ -76,7 +76,7 @@ /* 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)) ; + . = DATA_SEGMENT_ALIGN(0x1000, 0x1000); .data : { *(.data)