Simplify the linker script
This commit is contained in:
parent
e3705a5d5c
commit
a6497217a3
14
link.ld
14
link.ld
|
|
@ -1,14 +1,12 @@
|
|||
ENTRY(_start)
|
||||
|
||||
SECTIONS {
|
||||
. = 4M;
|
||||
. = . + SIZEOF_HEADERS;
|
||||
.text : { *(.text) } :text
|
||||
.rodata : { *(.rodata) } :text
|
||||
. += 4K;
|
||||
.data : { *(.data) } :data
|
||||
. = ALIGN(4K);
|
||||
.bss : { *(COMMON) *(.bss) } :bss
|
||||
. = 4M + SIZEOF_HEADERS;
|
||||
.text ALIGN(16) : { *(.text) } :text
|
||||
.rodata ALIGN(16) : { *(.rodata) } :text
|
||||
. += 4K; /* put .data in the next page in memory while not actually moving it in the file */
|
||||
.data ALIGN(16) : { *(.data) } :data
|
||||
.bss ALIGN(4K) : { *(COMMON) *(.bss) } :bss
|
||||
}
|
||||
|
||||
PHDRS {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user