# HG changeset patch # User Paul Boddie # Date 1461674827 -7200 # Node ID 0092a96764be83754fc17b89f13c71ad307cce8e # Parent 5d716521def0504cc859bac2700f9828e9960ef9 Moved the object tables above the program and data. diff -r 5d716521def0 -r 0092a96764be stage2/stage2.ld --- a/stage2/stage2.ld Tue Apr 26 14:29:00 2016 +0200 +++ b/stage2/stage2.ld Tue Apr 26 14:47:07 2016 +0200 @@ -17,6 +17,10 @@ . = ALIGN(4); .data : { *(.data*) *(.scommon*) *(.reginfo*) } + . = ALIGN(4); + .sbss : { *(.sbss*) } + .bss : { *(.bss*) } + .got : ALIGN(8192) { _gp = ALIGN(16); _got_start = ABSOLUTE(.); @@ -30,10 +34,5 @@ . += _got_end - _got_start; } _got_copy_end = ABSOLUTE(.); - - . = ALIGN(4); - .sbss : { *(.sbss*) } - .bss : { *(.bss*) } - . = ALIGN (4); }