+Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
+
+ * ldlang.c (lang_finish): don't warn if -e start symbol does not
+ exist when linking with -r.
+
Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
* aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
return new_afile (name, file_type, target);
}
+void
+DEFUN (lang_add_keepsyms_file, (filename),
+ CONST char *filename)
+{
+ extern strip_symbols_type strip_symbols;
+ if (keepsyms_file != 0)
+ info ("%X%P error: duplicated keep-symbols-file value\n");
+ keepsyms_file = filename;
+ if (strip_symbols != STRIP_NONE)
+ info ("%P `-keep-only-symbols-file' overrides `-s' and `-S'\n");
+ strip_symbols = STRIP_SOME;
+}
+
/* Build enough state so that the parser can build its tree */
void
DEFUN_VOID (lang_init)
DEFUN_VOID (lang_finish)
{
ldsym_type *lgs;
- int warn = 1;
+ int warn = config.relocateable_output != true;
if (entry_symbol == (char *) NULL)
{
/* No entry has been specified, look for start, but don't warn */