# HG changeset patch # User Paul Boddie # Date 1461669786 -7200 # Node ID 9b7c8e1f1b4887fc2d770ff7c495e81db0d559d1 # Parent bdbe5b78ca43783f5c1b36dcdaa0eb63bec127da Relocated the global object table regions to reside on page boundaries. diff -r bdbe5b78ca43 -r 9b7c8e1f1b48 stage2/stage2.ld --- a/stage2/stage2.ld Mon Apr 25 17:19:53 2016 +0200 +++ b/stage2/stage2.ld Tue Apr 26 13:23:06 2016 +0200 @@ -17,16 +17,18 @@ . = ALIGN(4); .data : { *(.data*) *(.scommon*) *(.reginfo*) } - _gp = ALIGN(16); - - _got_start = ABSOLUTE(.); - .got : { *(.got*) } + .got : ALIGN(4096) { + _gp = ALIGN(16); + _got_start = ABSOLUTE(.); + *(.got*) + } _got_end = ABSOLUTE(.); - _gp_copy = ALIGN(16); - - _got_copy_start = ABSOLUTE(.); - . += _got_end - _got_start; + .got_copy : ALIGN(4096) { + _gp_copy = ALIGN(16); + _got_copy_start = ABSOLUTE(.); + . += _got_end - _got_start; + } _got_copy_end = ABSOLUTE(.); . = ALIGN(4);