diff --git a/ndless-sdk/system/ldscript b/ndless-sdk/system/ldscript index aac9dba..58382f6 100644 --- a/ndless-sdk/system/ldscript +++ b/ndless-sdk/system/ldscript @@ -1,5 +1,10 @@ ENTRY(_start) +PHDRS { + text PT_LOAD; + data PT_LOAD; +} + SECTIONS { .text 0x0 : { _start = .; @@ -10,13 +15,13 @@ SECTIONS { KEEP(*(.fini_array)) KEEP(*(SORT_BY_INIT_PRIORITY(REVERSE(.fini_array.*)))) *(.text.*) - } + } :text .got : { *(.got.plt*) *(.got) LONG(0xFFFFFFFF) - } + } :data .data : { *(.rodata*)