aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-10-06 20:10:27 +0000
committerIan Lance Taylor <ian@airs.com>1992-10-06 20:10:27 +0000
commit81150d3470798e4ddd9661a4bbf56bd3c5c8f440 (patch)
treef594be76fb5969b9e5e28d2a56387c252e5cb661 /ld/ldlang.c
parent06e4d12d791541bed16bfb3f1493a5b436f18aed (diff)
downloadgdb-81150d3470798e4ddd9661a4bbf56bd3c5c8f440.zip
gdb-81150d3470798e4ddd9661a4bbf56bd3c5c8f440.tar.gz
gdb-81150d3470798e4ddd9661a4bbf56bd3c5c8f440.tar.bz2
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 447f2b8..87a492f 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 */