Force different sections to different pages for better results on
x86_64 Linux.
This commit is contained in:
parent
03df6b3280
commit
33a3a15316
2 changed files with 7 additions and 1 deletions
|
@ -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) }
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue