diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-02-28 14:46:25 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-02-28 14:46:25 +0000 |
commit | e637dcf08be9705ba8161b22b49a9785813e6973 (patch) | |
tree | c048c3797c88e5179df82f120d6f87e7f7b8bdf6 /ld | |
parent | 28edf847ec6d915c6ac919b8ebc00838183c482f (diff) | |
download | gdb-e637dcf08be9705ba8161b22b49a9785813e6973.zip gdb-e637dcf08be9705ba8161b22b49a9785813e6973.tar.gz gdb-e637dcf08be9705ba8161b22b49a9785813e6973.tar.bz2 |
mips-bsd and 386bsd support
Diffstat (limited to 'ld')
-rw-r--r-- | ld/.Sanitize | 8 | ||||
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/Makefile.in | 12 | ||||
-rw-r--r-- | ld/aout-mipsbsd.sc-sh | 28 | ||||
-rw-r--r-- | ld/config/.Sanitize | 2 | ||||
-rw-r--r-- | ld/config/i386-bsd.mt | 1 | ||||
-rw-r--r-- | ld/config/mipsbsd.mt | 1 | ||||
-rw-r--r-- | ld/configure.in | 12 | ||||
-rw-r--r-- | ld/i386bsd.sh | 7 | ||||
-rw-r--r-- | ld/mipsbsd.sh | 6 |
10 files changed, 82 insertions, 3 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize index f11aecd..e5c729e 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -36,6 +36,7 @@ TODO a29k.sc-sh a29k.sh aout.sc-sh +aout-mipsbsd.sc-sh cdtest-foo.cc cdtest-foo.h cdtest-func.cc @@ -61,6 +62,7 @@ h8300xray.em h8300xray.sc-sh h8300xray.sh i386aout.sh +i386bsd.sh i386coff.sc-sh i386coff.sh i960.sc-sh @@ -105,6 +107,7 @@ m88kbcs.sc-sh m88kbcs.sh mips.sc-sh mipsbig.sh +mipsbsd.sh mipslit.sh mri.c mri.h @@ -158,7 +161,10 @@ fi # # # $Log$ -# Revision 1.51 1993/02/26 18:53:13 dje +# Revision 1.52 1993/02/28 14:42:15 raeburn +# mips-bsd and 386bsd support +# +# Revision 1.51 1993/02/26 18:53:13 dje # Added initial sparc-v9 support. # # Revision 1.50 1993/02/13 10:15:14 zoo diff --git a/ld/ChangeLog b/ld/ChangeLog index 2c04888..f863840 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,13 @@ +Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) + + * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell, + ralphc@pyramid.com. + * i386bsd.sh, config/i386bsd.mt: New files. + * configure.in, Makefile.in: Added support for mipsbsd and 386bsd. + Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com) + * mri.c: Add extern declaration of strdup. * ldsym.c (KEEP macro): Add spaces around '=' for the sake of old (e.g. PCC) compilers. diff --git a/ld/Makefile.in b/ld/Makefile.in index 9c1328e..e0dad2d 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -119,7 +119,8 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \ em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o \ em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \ em_m68kcoff.o em_h8300xray.o em_st2000.o em_sa29200.o \ - em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o + em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \ + em_mipsbig.o em_mipsbsd.o EMULATION_OFILES=${ALL_EMULATIONS} #EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS} @@ -258,6 +259,15 @@ em_i386coff.c: $(srcdir)/i386coff.sh \ em_mipslit.c: $(srcdir)/mipslit.sh \ $(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS} ${GENSCRIPTS} mipslit.sh +em_i386bsd.c: $(srcdir)/i386bsd.sh \ + $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS} + ${GENSCRIPTS} i386bsd.sh +em_mipsbig.c: $(srcdir)/mipsbig.sh \ + $(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS} + ${GENSCRIPTS} mipsbig.sh +em_mipsbsd.c: $(srcdir)/mipsbsd.sh \ + $(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS} + ${GENSCRIPTS} mipsbsd.sh $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY) $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) diff --git a/ld/aout-mipsbsd.sc-sh b/ld/aout-mipsbsd.sc-sh new file mode 100644 index 0000000..6875794 --- /dev/null +++ b/ld/aout-mipsbsd.sc-sh @@ -0,0 +1,28 @@ +cat <<EOF +OUTPUT_FORMAT("${OUTPUT_FORMAT}") +OUTPUT_ARCH(${ARCH}) + +${RELOCATING+${LIB_SEARCH_DIRS}} +${RELOCATING+__DYNAMIC = 0;} +SECTIONS +{ + .text ${RELOCATING+${TEXT_START_ADDR}}: + { + CREATE_OBJECT_SYMBOLS + *(.text) + ${RELOCATING+etext = ${DATA_ALIGNMENT};} + } + .data ${RELOCATING+${DATA_ALIGNMENT}} : + { + *(.data) + ${CONSTRUCTING+CONSTRUCTORS} + ${RELOCATING+edata = .;} + } + .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} : + { + *(.bss) + *(COMMON) + ${RELOCATING+end = . }; + } +} +EOF diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index 99b40ab..756ef0f 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -32,6 +32,7 @@ go32.mt hp300.mh hp300bsd.mt i386-aout.mt +i386-bsd.mt i386-coff.mt i386v.mt i960.mt @@ -40,6 +41,7 @@ m68k-coff.mt m68k.mt m68kv.mt m88k-bcs.mt +mipsbsd.mt mips-big.mt mips-lit.mt news.mt diff --git a/ld/config/i386-bsd.mt b/ld/config/i386-bsd.mt new file mode 100644 index 0000000..a5c4e92 --- /dev/null +++ b/ld/config/i386-bsd.mt @@ -0,0 +1 @@ +EMUL=i386bsd diff --git a/ld/config/mipsbsd.mt b/ld/config/mipsbsd.mt new file mode 100644 index 0000000..d48c647 --- /dev/null +++ b/ld/config/mipsbsd.mt @@ -0,0 +1 @@ +EMUL=mipsbsd diff --git a/ld/configure.in b/ld/configure.in index 9b2a9a5..7cf3c53 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -38,6 +38,10 @@ case "${target}" in ;; sparc*-*-aout) my_target=sun4 ;; +# start-sanitize-v9 + sparc64*) my_target=sun4 + ;; +# end-sanitize-v9 i960-wrs-vxworks*) my_target=i960 ;; i960-intel-nindy) my_target=i960 @@ -58,12 +62,14 @@ case "${target}" in ;; *-tandem-none) my_target=st2000 # FIXME needs better name ;; - i386-go32-*) my_target=go32 + i386-*-go32) my_target=go32 ;; i386-*-sco*) my_target=i386-coff ;; i386-*-coff) my_target=i386-coff ;; + i[34]86-*-bsd) my_target=i386-bsd + ;; i386-*-aout) my_target=i386-aout ;; i386-*-sysv*) my_target=i386-coff @@ -93,6 +99,10 @@ case "${target}" in ;; mips-dec-ultrix*) my_target=mips-lit ;; + mips-sgi-irix*) my_target=mips-big + ;; + mips-dec-bsd*) my_target=mipsbsd + ;; z8k-*sim) my_target=z8ksim ;; *-*-aout) my_target=${target_cpu}-${target_vendor} diff --git a/ld/i386bsd.sh b/ld/i386bsd.sh new file mode 100644 index 0000000..a6d55a9 --- /dev/null +++ b/ld/i386bsd.sh @@ -0,0 +1,7 @@ +EMULATION_NAME=i386bsd +SCRIPT_NAME=aout +OUTPUT_FORMAT="a.out-i386-bsd" +PAGE_SIZE=0x1000 +TEXT_START_ADDR=0 +NONPAGED_TEXT_START_ADDR=0x1000 +ARCH=i386 diff --git a/ld/mipsbsd.sh b/ld/mipsbsd.sh new file mode 100644 index 0000000..fad8715 --- /dev/null +++ b/ld/mipsbsd.sh @@ -0,0 +1,6 @@ +EMULATION_NAME=mipsbsd +SCRIPT_NAME=aout-mipsbsd +OUTPUT_FORMAT="aout-mips-little" +TEXT_START_ADDR=0x1020 +PAGE_SIZE=4096 +ARCH=mips |