specific emulation.
* mipsidt.sh: New file; emulation for IDT MIPS board.
* Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
(em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
* config/mips-idt.mt: New file; sets EMUL to mipsidt.
* configure.in (mips-idt-ecoff): New target; uses mips-idt.
* ldlang.c (lang_relocate_globals): avoid possible hang with
undefined but unreferenced symbols.
* relax.c (relax_section): don't complain if the script file isn't
relaxable but -relax is set
* ldlang.c (lang_relocate_globals): avoid possible hang with
undefined but unreferenced symbols.
* relax.c (relax_section): don't complain if the script file isn't
relaxable but -relax is set
* mips.sc-sh: Put .scommon sections into .sbss section.
* ldmain.c (subfile_wanted_p): Preserve section of common symbols,
rather than always putting them in bfd_com_section.
* ldlang.c (lang_common): If a common symbol is not in
bfd_com_section, put in a section of the same name, rather than
always putting it in section COMMON.
* ldmain.c (subfile_wanted_p): If we already have a common
definition of a symbol, don't necessarily pull in an object file
that provides a non-common definition.
* ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
linker.
* ldgram.y (OPTION_EB, OPTION_EL): New tokens.
(command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
* mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
targets, linker script.
* mipslit.sh: New file. Little endian MIPS emulation.
* config/mips-lit.mt: New file. Use mipslit emulation.
* configure.in (mips-dec-ultrix*): Use target mips-lit.
* Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
(em_mipslit.c): New target. Uses mipslit.sh.
* ldwrite.c: Removed perform_relocation, copy_and_relocate, and
write_norel. All linking is now done via write_relax. Call
ldsym_write before calling write_relax.
* relax.c: Added copyright.
(write_relax): Renamed from write_relaxnorel. Added relocateable
argument. seclet_dump renamed to bfd_seclet_link.
* relax.h: Added copyright.
* m68kcoff.sc-sh: define _end as well as end, for consistency with
aout.sc-sh.
* configure.in: accept *-ericsson-ose for any m68k CPU.
* ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
for each output section.
macro bfd_asymbol_bfd as appropriate.
* Makefile.in: Un-duplicate ldlex.c dependency.
* condigure.in: Replace my_host case table by sourcing
../bfd/configure.host. Allow std-host as the default.
* ldmisc.c: Change logic for C++ name demangling: There is
no initial '_' to remove from stab-derived function names.
* ld.texinfo: new doc.
* ldgram.y, ldlex.l: understand -y<symbol>
* ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
print info. (add_ysym): new function.
* ldsym.h: (ldsym_type): new define SYM_Y.
ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
macros with PARAMS. Recreational cleanup. Update copyrights.
* Support for i386-sysv.
configure.in: check for i386-*-sysv* and i386-*-sco*.
i386coff.sc-sh: rewrote to support SVR3 by default.
ldctor.c (find_constructors): preserve stat_ptr.
ldlang.c (wild_doit): initialize vma and size of new output
section to corresponding input section. This is required for
shared library support.
(lang_size_sections): don't modify vma and size of sections which
are never loaded (for shared libraries).
ldwrite.c (copy_and_relocate): copy the contents of any section
which has contents, not just sections which are loaded (for shared
libraries).
mri.o, relax.o): Indicate dependence on ldgram.h.
* ld.h (strip_symbols_type): Add value STRIP_SOME.
* ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
(lang_add_keepsyms_file): New function.
* ldlex.l: Handle "-retain-symbols-file".
* ldsym.c (keepsyms_file, kept_syms): New vars.
(process_keepsyms): New functihon; reads file, marks symbols for saving.
(write_file_locals): File symbols should always be kept.
(ldsym_write): Warn about "-retain-symbols-file" overriding "-S" and "-s".
Process retain-symbols file before setting symtab.
* ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
(keepsyms_file, kept_syms): Declare them.
* ldmain.c (main): Non-fatal errors should still cause non-zero exit status
even with -r.