aboutsummaryrefslogtreecommitdiff
path: root/ld
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
parent06e4d12d791541bed16bfb3f1493a5b436f18aed (diff)
downloadfsf-binutils-gdb-81150d3470798e4ddd9661a4bbf56bd3c5c8f440.zip
fsf-binutils-gdb-81150d3470798e4ddd9661a4bbf56bd3c5c8f440.tar.gz
fsf-binutils-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')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c15
2 files changed, 19 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 976a492..49b58c0 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 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 */