Compare commits
No commits in common. "7ad6a3d3b60d3bfcc1184e1dae74640e4c48ff66" and "e3705a5d5cf88731371da76194bdf59706eda170" have entirely different histories.
7ad6a3d3b6
...
e3705a5d5c
20
link.ld
20
link.ld
|
|
@ -1,10 +1,18 @@
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
|
|
||||||
SECTIONS {
|
SECTIONS {
|
||||||
. = 4M + SIZEOF_HEADERS;
|
. = 4M;
|
||||||
.text ALIGN(16) : { *(.text) }
|
. = . + SIZEOF_HEADERS;
|
||||||
.rodata ALIGN(16) : { *(.rodata) }
|
.text : { *(.text) } :text
|
||||||
. += 4K; /* put .data in the next page in memory while not actually moving it in the file */
|
.rodata : { *(.rodata) } :text
|
||||||
.data ALIGN(16) : { *(.data) }
|
. += 4K;
|
||||||
.bss ALIGN(4K) : { *(COMMON) *(.bss) }
|
.data : { *(.data) } :data
|
||||||
|
. = ALIGN(4K);
|
||||||
|
.bss : { *(COMMON) *(.bss) } :bss
|
||||||
|
}
|
||||||
|
|
||||||
|
PHDRS {
|
||||||
|
text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
||||||
|
data PT_LOAD FLAGS(6);
|
||||||
|
bss PT_LOAD;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user