diff options
author | Nick Clifton <nickc@redhat.com> | 2000-11-08 22:57:04 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-11-08 22:57:04 +0000 |
commit | 55f480c5c4820cb983c3d387fbbc50db6b134a42 (patch) | |
tree | 55bd3e32c1196bbb6e72ef051be3a6b7a3fb944a /ld/scripttempl/h8500s.sc | |
parent | 7f243cee5a511e607b82200008442c676ea987d0 (diff) | |
download | gdb-binutils-2_10-branch.tar.gz |
Use ${CONSTRUCTING...} to enclose constructors and destructors.cvs/binutils-2_10-branchbinutils-2_10-branch
Diffstat (limited to 'ld/scripttempl/h8500s.sc')
-rw-r--r-- | ld/scripttempl/h8500s.sc | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ld/scripttempl/h8500s.sc b/ld/scripttempl/h8500s.sc new file mode 100644 index 00000000000..2567489e1d0 --- /dev/null +++ b/ld/scripttempl/h8500s.sc @@ -0,0 +1,65 @@ +TORS=" + ___ctors = . ; + *(.ctors) + ___ctors_end = . ; + ___dtors = . ; + *(.dtors) + ___dtors_end = . ;" + +cat <<EOF +OUTPUT_FORMAT("${OUTPUT_FORMAT}") +OUTPUT_ARCH(${ARCH}) + +/* Code and data, both 64k */ + +SECTIONS +{ +.text ${RELOCATING+ 0x10000 } : + { + *(.text) + ${RELOCATING+ _etext = . ; } + } + +.rdata ${RELOCATING+ 0x20000 } : + { + *(.rdata); + *(.strings) + + ${CONSTRUCTING+${TORS}} + } + +.data ${RELOCATING+ . } : + { + *(.data) + ${RELOCATING+ _edata = . ; } + } + +.bss ${RELOCATING+ .} : + { + ${RELOCATING+ __start_bss = . ; } + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } + +.stack ${RELOCATING+ 0x2fff0} : + { + ${RELOCATING+ _stack = . ; } + *(.stack) + } + +.stab 0 ${RELOCATING+(NOLOAD)} : + { + [ .stab ] + } + +.stabstr 0 ${RELOCATING+(NOLOAD)} : + { + [ .stabstr ] + } +} +EOF + + + + |