aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-13 02:34:33 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-13 02:34:33 +0000
commitd7339c87a6939d650500156bd77e660abb19c0a3 (patch)
treecc31c4f181a61bdf8825ab5b31573736d3ee994b /ld
parent0ade484f982a4d2528c341e48a7ff90ca14d06da (diff)
downloadbinutils-d7339c87a6939d650500156bd77e660abb19c0a3.zip
binutils-d7339c87a6939d650500156bd77e660abb19c0a3.tar.gz
binutils-d7339c87a6939d650500156bd77e660abb19c0a3.tar.bz2
* ldmain.c (multiple_definition): Only skip the warning if the
output section is absolute when the input section is not absolute. * ldlex.l: Accept whitespace in VERS_START state. Warn about invalid characters in VERS_* states.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog14
-rw-r--r--ld/ldmain.c12
2 files changed, 26 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b834f54..d16eecb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,17 @@
+Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * ldmain.c (multiple_definition): Only skip the warning if the
+ output section is absolute when the input section is not
+ absolute.
+
+ * ldlex.l: Accept whitespace in VERS_START state. Warn about
+ invalid characters in VERS_* states.
+
+Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
+ trailing space lead us to think that there is a zero address.
+
Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
* ldgram.y (vers_node): Correct typo of '(' for '{'.
diff --git a/ld/ldmain.c b/ld/ldmain.c
index e8e303e..03dd315 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -172,6 +172,16 @@ main (argc, argv)
xatexit (remove_output);
+ /* Set the default BFD target based on the configured target. Doing
+ this permits the linker to be configured for a particular target,
+ and linked against a shared BFD library which was configured for
+ a different target. The macro TARGET is defined by Makefile. */
+ if (! bfd_set_default_target (TARGET))
+ {
+ einfo ("%X%P: can't set BFD default target to `%s': %E\n", TARGET);
+ xexit (1);
+ }
+
/* Initialize the data about options. */
trace_files = trace_file_tries = version_printed = false;
whole_archive = false;
@@ -794,8 +804,10 @@ multiple_definition (info, name, obfd, osec, oval, nbfd, nsec, nval)
FIXME: It would be cleaner to somehow ignore symbols defined in
sections which are being discarded. */
if ((osec->output_section != NULL
+ && ! bfd_is_abs_section (osec)
&& bfd_is_abs_section (osec->output_section))
|| (nsec->output_section != NULL
+ && ! bfd_is_abs_section (nsec)
&& bfd_is_abs_section (nsec->output_section)))
return true;