diff options
author | Steve Chamberlain <sac@cygnus> | 1993-08-17 14:04:24 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-08-17 14:04:24 +0000 |
commit | ea1c0ad276b861d3e46fb47d6fa841f7e6c267d7 (patch) | |
tree | 7703cc71ab46fbcd3175fbf88949fdca3d43e1bf /ld/scripttempl | |
parent | 7b98a091361fd9660ed38f0e196a605bf324e160 (diff) | |
download | gdb-ea1c0ad276b861d3e46fb47d6fa841f7e6c267d7.zip gdb-ea1c0ad276b861d3e46fb47d6fa841f7e6c267d7.tar.gz gdb-ea1c0ad276b861d3e46fb47d6fa841f7e6c267d7.tar.bz2 |
* scripttempl/h8500.sc: Start all sections in a different segment.
* scripttempl/z8ksim.sc: Handle constructors
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/z8ksim.sc | 50 |
1 files changed, 39 insertions, 11 deletions
diff --git a/ld/scripttempl/z8ksim.sc b/ld/scripttempl/z8ksim.sc index 7ee132a..e9627d8 100644 --- a/ld/scripttempl/z8ksim.sc +++ b/ld/scripttempl/z8ksim.sc @@ -1,22 +1,50 @@ cat <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}") -OUTPUT_ARCH(${ARCH}) - +OUTPUT_ARCH(z8002) +ENTRY(_start) SECTIONS { -.text : - { +.text : { *(.text) *(.strings) - _etext = .; + *(.rdata) + } + +.ctors : + { + ${RELOCATING+ ___ctors = . ; } + *(.ctors); + ${RELOCATING+ ___ctors_end = . ; } + ___dtors = . ; + *(.dtors); + ${RELOCATING+ ___dtors_end = . ; } + } + +.data : { *(.data) - _edata = .; - *(.bss) - *(COMMON) - _end = .; - -} + } + +.bss : + { + ${RELOCATING+ __start_bss = . ; } + *(.bss); + *(COMMON); + ${RELOCATING+ __end_bss = . ; } + } + +.heap : { + ${RELOCATING+ __start_heap = . ; } + ${RELOCATING+ . = . + 20k ; } + ${RELOCATING+ __end_heap = . ; } + } + +.stack ${RELOCATING+ 0xf000 } : + { + ${RELOCATING+ _stack = . ; } + *(.stack) + ${RELOCATING+ __stack_top = . ; } + } } EOF |