* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,
authorKen Raeburn <raeburn@cygnus>
Fri, 25 Sep 1992 21:05:20 +0000 (21:05 +0000)
committerKen Raeburn <raeburn@cygnus>
Fri, 25 Sep 1992 21:05:20 +0000 (21:05 +0000)
commitf3b36ecb30e9201c3592ecc00ef0c02736892666
tree366b2401162928697fc96b3aa45835a671c7cd4c
parent57cae454d45dae7ea28236073220aa99abb44e33
* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,
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.
ld/ChangeLog
ld/ldsym.c
ld/ldsym.h