aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
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/ldmain.c
parent0ade484f982a4d2528c341e48a7ff90ca14d06da (diff)
downloadgdb-d7339c87a6939d650500156bd77e660abb19c0a3.zip
gdb-d7339c87a6939d650500156bd77e660abb19c0a3.tar.gz
gdb-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/ldmain.c')
-rw-r--r--ld/ldmain.c12
1 files changed, 12 insertions, 0 deletions
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;