* configure.in: Rewrite to use autoconf.

* configure.host: New file.
	* configure.tgt: New file.
	* aclocal.m4: New file.
	* configure: New file, built by autoconf.
	* acconfig.h: New file.
	* config.h.in: New file, built by autoheader.
	* sysdep.h: New file.
	* ld.h: Incorporate old contents of config.h.
	* config.h: Remove.
	* Makefile.in: Various changes for new configure script.  Also:
	(CC_FOR_BUILD): Remove.
	(ldmain.o): Don't bother to ensure that EMUL is non-empty.
	(dep.sed): Use @SRCDIR@, not @srcdir@.
	* dep-in.sed: Use @SRCDIR@, not @srcdir@.
	* genscripts.sh: Create ldscripts if it does not exist.
	* ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
	* mpw-esh.c, emultemp/*.em: Likewise.
	* ldmain.c: Likewise.  Include <ctype.h>.  Don't try to set
	HAVE_SBRK here.
	* config/*.mt, config/*.mh: Remove.
This commit is contained in:
Ian Lance Taylor 1995-09-06 18:58:05 +00:00
parent c464ba6669
commit d66c832b59
103 changed files with 156 additions and 415 deletions

View File

@ -28,10 +28,14 @@ Makefile.in
NEWS
README
TODO
config
config.h
acconfig.h
aclocal.m4
config.h.in
configure
configure.bat
configure.host
configure.in
configure.tgt
dep-in.sed
emulparams
emultempl
@ -71,13 +75,14 @@ mpw-make.in
mri.c
mri.h
scripttempl
sysdep.h
testsuite
Things-to-lose:
Do-last:
rce_files="configure.in Makefile.in"
rce_files="configure.in configure.tgt Makefile.in"
if ( echo $* | grep keep\-rce > /dev/null ) ; then
for i in $rce_files ; do
@ -106,7 +111,7 @@ else
done
fi
arc_files="ChangeLog configure.in Makefile.in"
arc_files="ChangeLog configure.in configure.tgt Makefile.in"
if ( echo $* | grep keep\-arc > /dev/null ) ; then
for i in $arc_files ; do

View File

@ -18,13 +18,15 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
srcdir = .
VPATH = @srcdir@
srcdir = @srcdir@
objdir = .
prefix = /usr/local
target_alias = @target_alias@
prefix = @prefix@
program_transform_name =
exec_prefix = $(prefix)
program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(exec_prefix)/$(target_alias)
@ -57,15 +59,17 @@ INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
AR = ar
AR_FLAGS = qv
CC = cc
CFLAGS = -g
CC = @CC@
CFLAGS = @CFLAGS@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
RANLIB = ranlib
CC_FOR_BUILD=$(CC)
BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
EMUL = @EMUL@
EMULATION_OFILES = @EMULATION_OFILES@
# Seach path to override the default search path for -lfoo libraries.
# If LIB_PATH is empty, the ones in the script (if any) are left alone.
# (The default is usually /lib:usr/lib:/usr/local/lib, unless building
@ -74,10 +78,6 @@ LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
# which may have the form: LIB_PATH=/lib:/usr/local/lib
LIB_PATH =
# Additional libraries which are used when ld is built native. This
# is set by some host makefile fragments.
NATIVE_LIB_DIRS =
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
@ -104,8 +104,8 @@ TEXI2ROFF=texi2roff
ROFF = groff
#stuff for self hosting (can be overridden in config file).
HOSTING_CRT0 = /lib/crt0.o
HOSTING_LIBS = `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc
HOSTING_CRT0 = @HOSTING_CRT0@
HOSTING_LIBS = @HOSTING_LIBS@
HOSTING_EMU = -m $(EMUL)
# These were used by `make check-cdtest'
@ -169,9 +169,6 @@ LD_PROG = ld.new
all: $(LD_PROG)
.PHONY: all
### Host, target, and site specific Makefile fragments come in here.
####
LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
# The .cc suffix was used by `make check-cdtest'.
@ -185,7 +182,7 @@ LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
#.cc.o:
# $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS)
.c.o:
$(CC) -c $(ALL_CFLAGS) $<
@ -193,7 +190,6 @@ ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
BFDLIB = ../bfd/libbfd.a
LIBIBERTY = ../libiberty/libiberty.a
ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \
ecoff_sparc.o eebmon29k.o \
eelf32_sparc.o eelf32bmip.o eelf32lmip.o eelf32ppc.o eelf32lppc.o \
@ -206,7 +202,7 @@ ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \
emipsidt.o emipsidtl.o emipslit.o enews.o ens32knbsd.o eppcnw.o \
eriscix.o esa29200.o eshl.o esh.o esparclynx.o esparcnbsd.o \
est2000.o esun3.o esun4.o evanilla.o evax.o evsta.o \
ez8001.o ez8002.o ei386pe.o earmpe.o
ez8001.o ez8002.o ei386pe.o earmpe.o eelf32vr4300.o eelf32vr4300el.o
CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
@ -217,7 +213,7 @@ HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
ldwrite.h mri.h
GENERATED_CFILES = ldgram.c ldlex.c
GENERATED_HFILES = ldgram.h ldemul-list.h
GENERATED_HFILES = ldgram.h ldemul-list.h config.h
OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
@ -239,14 +235,8 @@ ldgram.c: ldgram.y
# both ldgram.c and ldgram.h simultaneously.
ldgram.h: ldgram.c
# EMUL is the name of a file in the emulparams subdir, without the .sh.
ldmain.o: ldmain.c config.status
if [ -z "$(EMUL)" ] ; then \
echo "you must set a default emulation" 1>&2 ; \
exit 1 ; \
else \
$(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $< ; \
fi
$(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(ALL_CFLAGS) $<
ldemul-list.h: Makefile
(echo "/* This file is automatically generated. DO NOT EDIT! */";\
@ -274,7 +264,7 @@ ldlex.c: ldlex.l
# These all start with e so 'make clean' can find them.
GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host_alias@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
esun4.c: $(srcdir)/emulparams/sun4.sh \
@ -284,7 +274,7 @@ esun3.c: $(srcdir)/emulparams/sun3.sh \
$(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} sun3
earmpe.c: $(srcdir)/emulparams/armpe.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armpe.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
${GENSCRIPTS} armpe
evsta.c: $(srcdir)/emulparams/vsta.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
@ -305,7 +295,7 @@ ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} hp3hpux
ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
$(srcdir)/emultempl/i386pe.em $(srcdir)/scripttempl/i386pe.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386pe
ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
$(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
@ -421,6 +411,12 @@ eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32lmip
eelf32vr4300.c: $(srcdir)/emulparams/elf32vr4300.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32vr4300
eelf32vr4300el.c: $(srcdir)/emulparams/elf32vr4300el.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32vr4300el
ealpha.c: $(srcdir)/emulparams/alpha.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
${GENSCRIPTS} alpha
@ -506,8 +502,8 @@ $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
# The generated emulation files mostly have the same dependencies.
$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \
$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
ldctor.h ldexp.h ldlang.h
# These targets are for the dejagnu testsuites. The file site.exp
@ -522,16 +518,16 @@ site.exp: ./config.status Makefile
@echo "# Do not edit here. If you wish to override these" >> ./tmp0
@echo "# values, add them to the last section" >> ./tmp0
@echo "# HOST AND TARGET INFO" >> ./tmp0
@echo "set host_os $(host_os)" >> ./tmp0
@echo "set host_alias $(host_alias)" >> ./tmp0
@echo "set host_cpu $(host_cpu)" >> ./tmp0
@echo "set host_vendor $(host_vendor)" >> ./tmp0
@echo "set target_os $(target_os)" >> ./tmp0
@echo "set target_alias $(target_alias)" >> ./tmp0
@echo "set target_cpu $(target_cpu)" >> ./tmp0
@echo "set target_vendor $(target_vendor)" >> ./tmp0
@echo "set host_triplet $(host_canonical)" >> ./tmp0
@echo "set target_triplet $(target_canonical)" >> ./tmp0
@echo "set host_os @host_os@" >> ./tmp0
@echo "set host_alias @host_alias@" >> ./tmp0
@echo "set host_cpu @host_cpu@" >> ./tmp0
@echo "set host_vendor @host_vendor@" >> ./tmp0
@echo "set target_os @target_os@" >> ./tmp0
@echo "set target_alias @target_alias@" >> ./tmp0
@echo "set target_cpu @target_cpu@" >> ./tmp0
@echo "set target_vendor @target_vendor@" >> ./tmp0
@echo "set host_triplet @host@" >> ./tmp0
@echo "set target_triplet @target@" >> ./tmp0
@echo "# DIRECTORY INFO" >> ./tmp0
@echo "set objdir `pwd`" >> ./tmp0
@echo "" >> ./tmp0
@ -834,7 +830,7 @@ clean-info:
dep.sed: dep-in.sed config.status
sed <$(srcdir)/dep-in.sed >dep.sed \
-e 's!@INCDIR@!$(INCDIR)!' \
-e 's!@srcdir@!$(srcdir)!'
-e 's!@SRCDIR@!$(srcdir)!'
dep: .dep
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
@ -854,8 +850,15 @@ force:
.PHONY: force
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) ./config.status
Makefile: Makefile.in config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
config.h: stamp-h ; @true
stamp-h: config.h.in config.status
CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status
config.status: configure configure.host
$(SHELL) ./config.status --recheck
# What appears below is generated by a hacked mkdep using gcc -MM.
@ -863,56 +866,56 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
ldgram.h ldmain.h ldctor.h
ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
config.h ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h \
ldmain.h ldemul-list.h
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h \
ldemul-list.h
ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
ldgram.h ldlang.h
ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/bfdlink.h ld.h ldmisc.h ldexp.h ldlang.h \
ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h
ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
ldctor.h ldfile.h
ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h $(INCDIR)/progress.h $(INCDIR)/bfdlink.h \
config.h ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h \
ldexp.h ldlang.h ldemul.h ldlex.h ldfile.h ldctor.h
ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
ldemul.h ldlex.h ldfile.h ldctor.h
ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
ldfile.h
ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
ld.h ldver.h ldemul.h ldmain.h
ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
ldmisc.h ldgram.h ldmain.h
lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h ld.h \
ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
ldfile.h ldver.h
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
ldver.h ldemul.h
mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
ldlang.h ldmisc.h mri.h ldgram.h
ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
$(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \
$(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h ../bfd/sysdep.h \
$(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h ldexp.h \
ldlang.h ldfile.h ldlex.h ldmain.h
ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h sysdep.h \
config.h $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h \
ldexp.h ldlang.h ldfile.h ldlex.h ldmain.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY

2
ld/acconfig.h Normal file
View File

@ -0,0 +1,2 @@
/* Do we need to use the b modifier when opening binary files? */
#undef USE_BINARY_FOPEN

View File

@ -1,31 +0,0 @@
/* config.h -
Copyright (C) 1991 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
GLD is free software; you can redistribute it and/or modify
it under the terms of the GNU Genexral Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GLD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GLD; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Look in this environment name for the linker to pretend to be */
#define EMULATION_ENVIRON "LDEMULATION"
/* If in there look for the strings: */
/* Look in this variable for a target format */
#define TARGET_ENVIRON "GNUTARGET"

19
ld/config.h.in Normal file
View File

@ -0,0 +1,19 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Do we need to use the b modifier when opening binary files? */
#undef USE_BINARY_FOPEN
/* Define if you have the sbrk function. */
#undef HAVE_SBRK
/* Define if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

View File

@ -1,140 +0,0 @@
# .Sanitize for devo/ld/config
# Each directory to survive its way into a release will need a file
# like this one called "./.Sanitize". All keyword lines must exist,
# and must exist in the order specified by this file. Each directory
# in the tree will be processed, top down, in the following order.
# Hash started lines like this one are comments and will be deleted
# before anything else is done. Blank lines will also be squashed
# out.
# The lines between the "Do-first:" line and the "Things-to-keep:"
# line are executed as a /bin/sh shell script before anything else is
# done in this directory.
Do-first:
arc_files="arc-elf.mt"
if ( echo $* | grep keep\-arc > /dev/null ) ; then
keep_these_too="${arc_files} ${keep_these_too}"
else
lose_these_too="${arc_files} ${lose_these_too}"
fi
rce_files="rce-aout.mt"
if ( echo $* | grep keep\-rce > /dev/null ) ; then
keep_these_too="${rce_files} ${keep_these_too}"
else
lose_these_too="${rce_files} ${lose_these_too}"
fi
# All files listed between the "Things-to-keep:" line and the
# "Do-last:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
# called. Directories not listed will be removed in their entirety
# with rm -rf.
Things-to-keep:
alpha.mt
alphaosf.mh
arm-pe.mt
armb-aout.mt
arml-aout.mt
coff-a29k.mt
coff-h8300.mt
coff-h8500.mt
coff-sh.mt
coff-sparc.mt
coff-w65.mt
delta88.mh
dgux.mh
ebmon29k.mt
go32.mh
go32.mt
hp300.mh
hp300bsd.mt
hp300hpux.mt
hppaelf.mh
hppaelf.mt
i386-aout.mt
i386-bsd.mt
i386-coff.mt
i386-elf.mt
i386-gelf.mt
i386-gnu.mt
i386-go32.mt
i386-laout.mt
i386-linux.mt
i386-lynx.mt
i386-mach.mt
i386-moss.mt
i386-msdos.mt
i386-nbsd.mt
i386-nw.mt
i386-pe.mt
i386bsd.mh
i386linux.mh
i386lynx.mh
i386pe.mh
i386sco.mh
i386v.mh
i386v.mt
i386v4.mh
i960.mt
i960coff.mt
ieee-h8300.mt
irix4.mh
m68k-coff.mt
m68k-elf.mt
m68k-lynx.mt
m68k-nbsd.mt
m68k.mt
m68klynx.mh
m68kv.mt
m88k-bcs.mt
mips-big.mt
mips-idt.mt
mips-lit.mt
mips-vr4300.mt
mips-vr4300el.mt
mipsb-elf32.mt
mipsbsd.mh
mipsbsd.mt
mipsl-elf32.mt
mipsl-idt.mt
news.mt
ns32k-nbsd.mt
ose68.mt
pc532mach.mt
ppc-elf32.mt
ppc-nw.mt
ppcle-elf32.mt
riscix.mt
rtbsd.mh
sa29200.mt
solaris2.mh
sparc-ll.mh
sparc-lynx.mt
sparc-nbsd.mt
sparc64-elf.mt
st2000.mt
sun3.mh
sun3.mt
sun4.mt
sun4sol2.mt
vax.mt
vsta.mt
vxworks68.mt
z8k-coff.mt
Things-to-lose:
# The lines between the "Do-last:" line and the end of the file
# are executed as a /bin/sh shell script after everything else is
# done.
Do-last:

View File

@ -1 +0,0 @@
EMUL=alpha

View File

@ -1,2 +0,0 @@
NATIVE_LIB_DIRS=/usr/ccs/lib
HOSTING_CRT0=/usr/ccs/lib/crt0.o

View File

@ -1 +0,0 @@
EMUL=arcelf

View File

@ -1 +0,0 @@
EMUL=armpe

View File

@ -1 +0,0 @@
EMUL=armaoutb

View File

@ -1 +0,0 @@
EMUL=armaoutl

View File

@ -1 +0,0 @@
EMUL=a29k

View File

@ -1,7 +0,0 @@
EMUL=h8300h
EMUL=h8300
# We need to also include h8300h support. Not sure what's the "Right Way."
# This first line of this file is a hack. Somehow we need to get h8300h
# into EMULATION_OFILES. "EMUL=h8300" *must* be last.

View File

@ -1,5 +0,0 @@
EMUL=h8500s
EMUL=h8500b
EMUL=h8500m
EMUL=h8500c
EMUL=h8500

View File

@ -1,2 +0,0 @@
EMUL=shl
EMUL=sh

View File

@ -1 +0,0 @@
EMUL=coff_sparc

View File

@ -1,3 +0,0 @@
EMUL=w65

View File

@ -1,6 +0,0 @@
HDEFINES =
INSTALL=cp

View File

@ -1,5 +0,0 @@
HDEFINES = -D__using_DGUX
HOSTING_CRT0=/lib/crt0.o -X
HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a
HOSTING_EMU=-m m88kbcs

View File

@ -1 +0,0 @@
EMUL=ebmon29k

View File

@ -1,4 +0,0 @@
CC_FOR_BUILD=gcc
CC=i386-go32-gcc -O2 -fno-omit-frame-pointer -Xlinker -S

View File

@ -1 +0,0 @@
EMUL=go32

View File

@ -1,4 +0,0 @@
# If compiling with -O on the HP 9000/300 running HP/UX, you must
# specify -Wp,-P to avoid a stupid compiler bug.
# Ian Taylor, David Henkel-Wallace, Cygnus Support
# CFLAGS = +O1000 -Wp,-P

View File

@ -1,2 +0,0 @@
EMUL=hp300bsd

View File

@ -1 +0,0 @@
EMUL=hp3hpux

View File

@ -1,3 +0,0 @@
HOSTING_CRT0=/lib/crt0.o
HOSTING_LIBS=-lc
HOSTING_EMU=-m hppaelf

View File

@ -1 +0,0 @@
EMUL=hppaelf

View File

@ -1 +0,0 @@
EMUL=i386aout

View File

@ -1 +0,0 @@
EMUL=i386bsd

View File

@ -1 +0,0 @@
EMUL=i386coff

View File

@ -1 +0,0 @@
EMUL=elf_i386

View File

@ -1,2 +0,0 @@
EMUL=elf_i386
EMUL_EXTRA1=i386mach

View File

@ -1,2 +0,0 @@
EMUL=i386mach
EMUL_EXTRA1=elf_i386

View File

@ -1 +0,0 @@
EMUL=i386go32

View File

@ -1,2 +0,0 @@
EMUL=i386linux
EMUL_EXTRA1=elf_i386

View File

@ -1,2 +0,0 @@
EMUL=elf_i386
EMUL_EXTRA1=i386linux

View File

@ -1 +0,0 @@
EMUL=i386lynx

View File

@ -1 +0,0 @@
EMUL=i386mach

View File

@ -1,2 +0,0 @@
EMUL=i386moss
EMUL_EXTRA1=i386msdos

View File

@ -1,2 +0,0 @@
EMUL=i386msdos
EMUL_EXTRA1=i386aout

View File

@ -1 +0,0 @@
EMUL=i386nbsd

View File

@ -1 +0,0 @@
EMUL=i386nw

View File

@ -1 +0,0 @@
EMUL=i386pe

View File

@ -1,5 +0,0 @@
# The new BSD `make' has a bug: it doesn't pass empty arguments in
# shell commands. So we need to make this value non-empty in order
# for the genscripts.sh call to work. There's nothing magic about
# the value `/lib'; it's just a dummy.
NATIVE_LIB_DIRS = /lib

View File

@ -1,2 +0,0 @@
# Linux apparently puts crt0.o in /usr/lib, not /lib.
HOSTING_CRT0=/usr/lib/crt0.o

View File

@ -1,2 +0,0 @@
HOSTING_CRT0=/lib/init1.o
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o

View File

@ -1,5 +0,0 @@
CC_FOR_BUILD=gcc
CC=i386-newlib-pe-gcc -O2

View File

@ -1,4 +0,0 @@
# For testing, we want to use /lib/crt1.o and /lib/crtn.o so that
# constructors work properly.
HOSTING_CRT0=/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` /lib/crtn.o

View File

@ -1,4 +0,0 @@
# For testing, we want to use /lib/crt1.o and /lib/crtn.o so that
# constructors work properly.
HOSTING_CRT0=/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o

View File

@ -1,2 +0,0 @@
# This doesn't seem to exist.
EMUL=i386v

View File

@ -1,3 +0,0 @@
HOSTING_CRT0=/usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` /usr/ccs/lib/crtn.o
NATIVE_LIB_DIRS=/usr/ccs/lib

View File

@ -1 +0,0 @@
EMUL=gld960

View File

@ -1 +0,0 @@
EMUL=gld960coff

View File

@ -1 +0,0 @@
EMUL=h8300xray

View File

@ -1,3 +0,0 @@
# Irix 4.0.1 does not use /lib/crt0.o
HOSTING_CRT0=/usr/lib/crt1.o
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o

View File

@ -1 +0,0 @@
EMUL=m68kcoff

View File

@ -1 +0,0 @@
EMUL=m68kelf

View File

@ -1 +0,0 @@
EMUL=m68klynx

View File

@ -1 +0,0 @@
EMUL=m68knbsd

View File

@ -1 +0,0 @@
EMUL=m68kaout

View File

@ -1,2 +0,0 @@
HOSTING_CRT0=/lib/init1.o
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc -lm /lib/initn.o

View File

@ -1,2 +0,0 @@
# This emulation seems not to exist.
EMUL=m68kv

View File

@ -1 +0,0 @@
EMUL=m88kbcs

View File

@ -1 +0,0 @@
EMUL=mipsbig

View File

@ -1 +0,0 @@
EMUL=mipsidt

View File

@ -1 +0,0 @@
EMUL=mipslit

View File

@ -1 +0,0 @@
EMUL=elf32vr4300

View File

@ -1 +0,0 @@
EMUL=elf32vr4300el

View File

@ -1 +0,0 @@
EMUL=elf32bmip

View File

@ -1,2 +0,0 @@
# BSD 4.4 uses /usr/lib/crt0.o
HOSTING_CRT0=/usr/lib/crt0.o

View File

@ -1 +0,0 @@
EMUL=mipsbsd

View File

@ -1 +0,0 @@
EMUL=elf32lmip

View File

@ -1 +0,0 @@
EMUL=mipsidtl

View File

@ -1 +0,0 @@
EMUL=news

View File

@ -1 +0,0 @@
EMUL=ns32knbsd

View File

@ -1 +0,0 @@
EMUL=sun3

View File

@ -1,2 +0,0 @@
EMUL=pc532machaout
OTHER_EMULATIONS=epc532machaout.o

View File

@ -1 +0,0 @@
EMUL=elf32ppc

View File

@ -1 +0,0 @@
EMUL=ppcnw

View File

@ -1 +0,0 @@
EMUL=elf32lppc

View File

@ -1 +0,0 @@
EMUL=rce

View File

@ -1 +0,0 @@
EMUL=riscix

View File

@ -1,6 +0,0 @@
# The IBM RT/PC has only been supported as a host in a cross-development
# environment. If you don't have gcc, I was able to get 'hc -Hnocpp -ma'
# to compile most of the modules, but didn't try running anything.
HDEFINES = -DNO_VARARGS
LDFLAGS =
CC=gcc # hc/pcc just can't cut it

View File

@ -1 +0,0 @@
EMUL=sa29200

View File

@ -1,4 +0,0 @@
# Hosting files for Solaris
HOSTING_CRT0=`if [ -f ../gcc/crt1.o ]; then echo ../gcc/crt1.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crt1.o/'; fi` `if [ -f ../gcc/crti.o ]; then echo ../gcc/crti.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crti.o/'; fi` /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtbegin.o/'; fi`
HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtend.o/'; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else gcc -print-libgcc-file-name | sed -e 's/libgcc.a/crtn.o/'; fi`
NATIVE_LIB_DIRS=/usr/ccs/lib

View File

@ -1 +0,0 @@
HDEFINES=-DHOST_64_BIT="long long"

View File

@ -1 +0,0 @@
EMUL=sparclynx

View File

@ -1 +0,0 @@
EMUL=sparcnbsd

View File

@ -1 +0,0 @@
EMUL=elf64_sparc

View File

@ -1,2 +0,0 @@
EMUL=st2000

View File

@ -1 +0,0 @@
HOSTING_CRT0=/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o

View File

@ -1,2 +0,0 @@
EMUL=sun3

View File

@ -1 +0,0 @@
EMUL=sun4

View File

@ -1 +0,0 @@
EMUL=elf32_sparc

View File

@ -1 +0,0 @@
EMUL=vax

View File

@ -1 +0,0 @@
EMUL=vsta

View File

@ -1 +0,0 @@
EMUL=sun3

View File

@ -1,5 +0,0 @@
EMUL=z8001
EMUL=z8002

View File

@ -30,7 +30,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "bfdlink.h"
#include "ld.h"
#include "config.h"
#include "ldemul.h"
#include "ldfile.h"
#include "ldmisc.h"

Some files were not shown because too many files have changed in this diff Show More