From 81150d3470798e4ddd9661a4bbf56bd3c5c8f440 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 6 Oct 1992 20:10:27 +0000 Subject: [PATCH] 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. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 976a4925842..49b58c05dbd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/ld/ldlang.c b/ld/ldlang.c index 447f2b84529..87a492fafb4 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -336,6 +336,19 @@ DEFUN (lang_add_input_file, (name, file_type, target), 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) @@ -1846,7 +1859,7 @@ static void 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 */ -- 2.30.2