diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-01 20:52:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-01 20:52:10 +0000 |
commit | 63982998169d841bd39e318d6fbaa5b7d1f37f94 (patch) | |
tree | 67395159f6fb02c329483fc66d70f69e3a8b580e /ld/scripttempl | |
parent | c3294c2e78d0b6b947c4d4da35d799c31447b75a (diff) | |
download | gdb-63982998169d841bd39e318d6fbaa5b7d1f37f94.zip gdb-63982998169d841bd39e318d6fbaa5b7d1f37f94.tar.gz gdb-63982998169d841bd39e318d6fbaa5b7d1f37f94.tar.bz2 |
Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* Makefile.in (ALL_EMULATIONS): Add edelta68.o.
(edelta68.c): New target.
* configure.tgt (m68*-motorola-sysv3*): New target.
* emulparams/delta68.sh: New file.
* scripttempl/delta68.sc: New file.
* scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
addresses.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/.Sanitize | 1 | ||||
-rw-r--r-- | ld/scripttempl/m88kbcs.sc | 28 |
2 files changed, 19 insertions, 10 deletions
diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 72e6719..55588e1 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -38,6 +38,7 @@ alpha.sc armaout.sc armcoff.sc aout.sc +delta68.sc ebmon29k.sc elf.sc elfppc.sc diff --git a/ld/scripttempl/m88kbcs.sc b/ld/scripttempl/m88kbcs.sc index 928d640..b29980e 100644 --- a/ld/scripttempl/m88kbcs.sc +++ b/ld/scripttempl/m88kbcs.sc @@ -1,18 +1,20 @@ +# These are substituted in as variables in order to get '}' in a shell +# conditional expansion. +INIT='.init : { *(.init) }' +FINI='.fini : { *(.fini) }' cat <<EOF -TARGET(m88kbcs) -OUTPUT_FORMAT(m88kbcs) +OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) ENTRY(__start) ${RELOCATING+${LIB_SEARCH_DIRS}} SECTIONS { - .text ${RELOCATING+ 0x10000 + SIZEOF_HEADERS} : + .text ${RELOCATING+ (0x20007 + SIZEOF_HEADERS) &~ 7} : { - CREATE_OBJECT_SYMBOLS ${RELOCATING+ __.text.start = .}; ${RELOCATING+ __.init.start = .}; - ${RELOCATING+ LONG(0xf400c001)} + ${RELOCATING+ *(.init)} ${RELOCATING+ __.init.end = .}; *(.text) ${RELOCATING+ __.tdesc_start = .}; @@ -20,14 +22,14 @@ SECTIONS ${RELOCATING+ __.text_end = .} ; ${RELOCATING+ __.initp.start = .}; ${RELOCATING+ __.initp.end =.}; - + ${RELOCATING+ __.fini_start = .}; + ${RELOCATING+ *(.fini) } + ${RELOCATING+ __.fini_end = .}; ${RELOCATING+_etext =.}; } - .data ${RELOCATING+ SIZEOF(.text) + ADDR(.text) + 0x400000} : + .data ${RELOCATING+ NEXT (0x400000) + ((SIZEOF(.text) + ADDR(.text)) % 0x200)} : { *(.data) - ${CONSTRUCTING+CONSTRUCTORS} - *(.comment) ${RELOCATING+_edata = .}; } .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : @@ -36,6 +38,12 @@ SECTIONS *(COMMON) ${RELOCATING+ _end = .}; ${RELOCATING+ __end = .}; - } + } + ${RELOCATING- ${INIT}} + ${RELOCATING- ${FINI}} + .comment 0 ${RELOCATING+(NOLOAD)} : + { + *(.comment) + } } EOF |