+Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
+
+ * Makefile.in, configure.in: Support for go32 coff.
+ * config/i386-go32.mt: New file
+ * emulparams/i386go32.sh: New file
+ * scripttempl/i386go32.sc: New file
+
Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
em_h8500b.o em_h8500s.o em_h8500c.o em_h8500m.o \
em_hppaelf.o em_mipsidtl.o em_sh.o em_elf_i386.o em_alpha.o \
em_i386lynx.o em_m68klynx.o em_sparclynx.o em_coff_sparc.o \
- em_delta68.o em_elf32ppc.o \
+ em_delta68.o em_elf32ppc.o em_i386go32.o \
$(OTHER_EMULATIONS)
# This is now set by configure.in.
em_i386aout.c: $(srcdir)/emulparams/i386aout.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386aout
+em_i386go32.c: $(srcdir)/emulparams/i386go32.sh \
+ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} i386go32
em_i386mach.c: $(srcdir)/emulparams/i386mach.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386mach
i386-bsd.mt
i386-coff.mt
i386-elf.mt
+i386-go32.mt
i386-linux.mt
i386-lynx.mt
i386-mach.mt
--- /dev/null
+EMUL=i386go32
i386aout.sh
i386bsd.sh
i386coff.sh
+i386go32.sh
i386linux.sh
i386lynx.sh
i386mach.sh
NONPAGED_TEXT_START_ADDR=0x0
ARCH=i386
+
+SCRIPT_NAME=coff
+OUTPUT_FORMAT="i386-coff"
+TEXT_START_ADDR=0x10a8
+PAGE_SIZE=0x1000
+SEGMENT_SIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x0
+ARCH=i386
+
--- /dev/null
+SCRIPT_NAME=i386go32
+OUTPUT_FORMAT="coff-i386"
+TEXT_START_ADDR=0x10a8
+PAGE_SIZE=0x1000
+SEGMENT_SIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x0
+ARCH=i386
+
h8500s.sc
hppaelf.sc
i386coff.sc
+i386go32.sc
i960.sc
m68kcoff.sc
m68klynx.sc
--- /dev/null
+# Linker script for i386 go32 COFF.
+# stolen from ian
+test -z "$ENTRY" && ENTRY=_start
+# These are substituted in as variables in order to get '}' in a shell
+# conditional expansion.
+INIT='.init : { *(.init) }'
+FINI='.fini : { *(.fini) }'
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+ENTRY(${ENTRY})
+
+SECTIONS
+{
+ .text ${RELOCATING+ 0x10a8} : {
+ ${RELOCATING+ *(.init)}
+ *(.text)
+ ${RELOCATING+ *(.fini)}
+ ${RELOCATING+ etext = .};
+ }
+ .data ALIGN (0x1000) : {
+ *(.data .data2)
+ *(.ctor)
+ *(.dtor)
+ ${RELOCATING+ _edata = .};
+ }
+ .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
+ {
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ end = .};
+ }
+ ${RELOCATING- ${INIT}}
+ ${RELOCATING- ${FINI}}
+ .stab . (NOLOAD) :
+ {
+ [ .stab ]
+ }
+ .stabstr . (NOLOAD) :
+ {
+ [ .stabstr ]
+ }
+}
+EOF