* ldfile.c (ldfile_open_command): Don't try .ld extension.
authorDavid MacKenzie <djm@cygnus>
Thu, 17 Jun 1993 20:55:43 +0000 (20:55 +0000)
committerDavid MacKenzie <djm@cygnus>
Thu, 17 Jun 1993 20:55:43 +0000 (20:55 +0000)
commit8ddef5528d34f05ff9a492e23b15ef5c6c8eb5fb
treef921e9cedac5cd479f9954d6b30598061db2e93d
parent21cc14d8505ad50143ea248c0de12bfa9eecf1e7
* ldfile.c (ldfile_open_command): Don't try .ld extension.
It wasn't documented (or likely used) and wastes time.
(try_open): If EXTEN is empty, don't try it.

* ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
with normal function declarations.

* Move *.em to emultempl/*.em.  Move *.sh to emulparams/*.sh.
Move *.sc-sh to scripttempl/*.sc.
* {emultempl,emulparams,scripttempl}/README: New files.
* sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
removed, replaced with generic.em.
* h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
 h8[35]00hms.s[ch].  Change their contents to omit the "hms".

* *.em (*_get_script): Return script name instead of script contents.
* ldlang.c (lang_process): Change caller.

* ldlex.l, ldgram.y: Recognize -m option.
Check for input files after *all* options in grammar.
* ldmain.c (main): Check for -m options.  Add default directory
for -m.

* mkscript.c: File removed.
* genscripts.sh: Take two more parameters, tooldirlib and libdir,
to add to the default LIB_PATH.
Look for input files in the new subdirectories.
Create the scripts in emulations subdirectory and don't filter
them through mkscript.
* configure.in: Make the emulations subdirectory.

* Makefile.in: Account for all of the above changes.
Remove unused .SUFFIXES.  Get libgcc.a path with gcc
-print-libgcc-file-name instead of $(libdir)/libgcc.a.
Put CFLAGS last in the compilation rules.
Add -I../bfd to INCLUDES so sysdep.h is found.

* ldfile.c (try_open): If opening without the extension fails,
try with the extension even if -v or -V was given.
had_script is imported (from ldgram.y), not exported.
63 files changed:
ld/.Sanitize
ld/ChangeLog
ld/Makefile.in
ld/configure.in
ld/emulparams/.Sanitize [new file with mode: 0644]
ld/emulparams/README [new file with mode: 0644]
ld/emulparams/a29k.sh [new file with mode: 0644]
ld/emulparams/ebmon29k.sh [new file with mode: 0644]
ld/emulparams/gld960.sh [new file with mode: 0644]
ld/emulparams/go32.sh [new file with mode: 0644]
ld/emulparams/h8300.sh [new file with mode: 0644]
ld/emulparams/h8500.sh [new file with mode: 0644]
ld/emulparams/hp300bsd.sh [new file with mode: 0644]
ld/emulparams/hp3hpux.sh [new file with mode: 0644]
ld/emulparams/hppaosf.sh [new file with mode: 0644]
ld/emulparams/i386aout.sh [new file with mode: 0644]
ld/emulparams/i386bsd.sh [new file with mode: 0644]
ld/emulparams/i386coff.sh [new file with mode: 0644]
ld/emulparams/lnk960.sh [new file with mode: 0644]
ld/emulparams/m68kcoff.sh [new file with mode: 0644]
ld/emulparams/mipsbig.sh [new file with mode: 0644]
ld/emulparams/mipsbsd.sh [new file with mode: 0644]
ld/emulparams/mipsidt.sh [new file with mode: 0644]
ld/emulparams/mipsidtl.sh [new file with mode: 0644]
ld/emulparams/mipslit.sh [new file with mode: 0644]
ld/emulparams/news.sh [new file with mode: 0644]
ld/emulparams/sa29200.sh [new file with mode: 0644]
ld/emulparams/sh.sh [new file with mode: 0644]
ld/emulparams/st2000.sh [new file with mode: 0644]
ld/emulparams/sun3.sh [new file with mode: 0644]
ld/emulparams/vanilla.sh [new file with mode: 0644]
ld/emulparams/vax.sh [new file with mode: 0644]
ld/emulparams/z8ksim.sh [new file with mode: 0644]
ld/emultempl/.Sanitize [new file with mode: 0644]
ld/emultempl/README [new file with mode: 0644]
ld/emultempl/hppaosf.em [new file with mode: 0644]
ld/emultempl/vanilla.em [new file with mode: 0644]
ld/ld.1
ld/ld.texinfo
ld/lderror.c
ld/ldgram.y
ld/ldindr.c
ld/ldlang.c
ld/ldlex.l
ld/ldsym.c
ld/ldwarn.c
ld/mri.c
ld/relax.c
ld/scripttempl/.Sanitize [new file with mode: 0644]
ld/scripttempl/README [new file with mode: 0644]
ld/scripttempl/a29k.sc [new file with mode: 0644]
ld/scripttempl/ebmon29k.sc [new file with mode: 0644]
ld/scripttempl/h8500.sc [new file with mode: 0644]
ld/scripttempl/hppaosf.sc [new file with mode: 0644]
ld/scripttempl/i386coff.sc [new file with mode: 0644]
ld/scripttempl/i960.sc [new file with mode: 0644]
ld/scripttempl/mips.sc [new file with mode: 0644]
ld/scripttempl/mipsbsd.sc [new file with mode: 0644]
ld/scripttempl/sa29200.sc [new file with mode: 0644]
ld/scripttempl/sh.sc [new file with mode: 0644]
ld/scripttempl/st2000.sc [new file with mode: 0644]
ld/scripttempl/vanilla.sc [new file with mode: 0644]
ld/scripttempl/z8ksim.sc [new file with mode: 0644]