Force different sections to different pages for better results on

x86_64 Linux.
This commit is contained in:
Ian Lance Taylor 2008-02-12 00:15:40 +00:00
parent 03df6b3280
commit 33a3a15316
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,8 @@ SECTIONS
/* With luck this will be enough to get the program working. */
.text : { *(.text) }
. += 0x100000;
. = ALIGN(0x100);
.data : { *(.data) }
.bss : { *(.bss) }

View File

@ -28,8 +28,12 @@ SECTIONS
/* With luck this will be enough to get the program working. */
.interp : { *(.interp) } :text :interp
.text : { *(.text) } :text
.dynamic : { *(.dynamic) } :text :dynamic
. += 0x100000;
. = ALIGN(0x100);
.dynamic : { *(.dynamic) } :data :dynamic
.data : { *(.data) } :data
. += 0x100000;
. = ALIGN(0x100);
.bss : { *(.bss) } :bss
}