mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
Force different sections to different pages for better results on
x86_64 Linux.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user