diff options
Diffstat (limited to 'ld/scripttempl/psos.sc')
-rw-r--r-- | ld/scripttempl/psos.sc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/scripttempl/psos.sc b/ld/scripttempl/psos.sc index ab8c6c7..bc99fdd 100644 --- a/ld/scripttempl/psos.sc +++ b/ld/scripttempl/psos.sc @@ -5,7 +5,7 @@ ${RELOCATING+${LIB_SEARCH_DIRS}} SECTIONS { - .text ${RELOCATING:-0} ${RELOCATING+${TEXT_START_ADDR}} : { + .text ${RELOCATING+${TEXT_START_ADDR}} : { ${RELOCATING+ start = DEFINED(_START) ? _START : DEFINED(_start) ? _start : .;} ${RELOCATING+ PROVIDE(__text = .);} *(.text); @@ -31,14 +31,14 @@ SECTIONS ${RELOCATING+ PROVIDE(__etext = .);} ${RELOCATING+ PROVIDE(_etext = .);} } - .data ${RELOCATING:-0} : ${RELOCATING+ AT(ADDR(.text) + SIZEOF(.text))} { + .data : ${RELOCATING+ AT(ADDR(.text) + SIZEOF(.text))} { ${RELOCATING+ PROVIDE(__data = .);} *(.data); *(vars); ${RELOCATING+ PROVIDE(__edata = .);} ${RELOCATING+ PROVIDE(_edata = .);} } - .bss ${RELOCATING:-0} : + .bss : { ${RELOCATING+ PROVIDE(__bss = .);} *(.bss); |