diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-11-04 00:39:49 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-11-04 00:39:49 +0000 |
commit | 0128cbae50e269c59d85affb5c104329fd8d2ffd (patch) | |
tree | 4a058211e7c46928a6782baa3b47bbf185d01f18 /ld/scripttempl | |
parent | 0cb42d6f8eb143d2837bf16c6e6ffb164cdbc8e6 (diff) | |
download | gdb-0128cbae50e269c59d85affb5c104329fd8d2ffd.zip gdb-0128cbae50e269c59d85affb5c104329fd8d2ffd.tar.gz gdb-0128cbae50e269c59d85affb5c104329fd8d2ffd.tar.bz2 |
* Makefile.in (check): Add missing "else true" clause.
* emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
* scripttempl/go32coff.sc: Changes from DJ Delorie: Change default entry point
to "start". Align at end of each section to 0x200. Start .text section 0x1000
later. Add _etext, _edata, _end symbols.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/go32coff.sc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ld/scripttempl/go32coff.sc b/ld/scripttempl/go32coff.sc index 8ea702d..40f6076 100644 --- a/ld/scripttempl/go32coff.sc +++ b/ld/scripttempl/go32coff.sc @@ -1,7 +1,7 @@ # Linker script for 386 go32 # DJ Delorie (dj@ctron.com) -test -z "$ENTRY" && ENTRY=_start +test -z "$ENTRY" && ENTRY=start cat <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}") ${LIB_SEARCH_DIRS} @@ -10,22 +10,24 @@ ENTRY(${ENTRY}) SECTIONS { - .text ${RELOCATING+ SIZEOF_HEADERS} : { + .text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : { *(.text) - ${RELOCATING+ etext = .}; + ${RELOCATING+ etext = . ; _etext = .}; + ${RELOCATING+ . = ALIGN(0x200);} } .data ${RELOCATING+ ${DATA_ALIGNMENT}} : { ${RELOCATING+ *(.ctor)} ${RELOCATING+ *(.dtor)} *(.data) - ${RELOCATING+ edata = .}; - ${RELOCATING+. = ALIGN(${PAGE_SIZE});} + ${RELOCATING+ edata = . ; _edata = .}; + ${RELOCATING+ . = ALIGN(0x200);} } .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : { *(.bss) *(COMMON) - ${RELOCATING+ end = .}; + ${RELOCATING+ end = . ; _end = .}; + ${RELOCATING+ . = ALIGN(0x200);} } } EOF |