aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-01-16 21:04:29 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-01-16 21:04:29 +0000
commitb92473047e3f3148974325dd7537726749eae45a (patch)
tree54615a12a25fd6b91279eee3aac6b0ce76610022 /ld
parentd1abceec0899301160cca3a757d0bc5699c60c6f (diff)
downloadgdb-b92473047e3f3148974325dd7537726749eae45a.zip
gdb-b92473047e3f3148974325dd7537726749eae45a.tar.gz
gdb-b92473047e3f3148974325dd7537726749eae45a.tar.bz2
2001-01-16 H.J. Lu <hjl@gnu.org>
* ldlang.c (lang_check): Merge the private data only if the input file has contents.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9215103..17974d8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16 H.J. Lu <hjl@gnu.org>
+
+ * ldlang.c (lang_check): Merge the private data only if the
+ input file has contents.
+
2001-01-14 Alan Modra <alan@linuxcare.com.au>
* emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4b822b3..bc25f04 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3474,8 +3474,11 @@ lang_check ()
bfd_printable_name (input_bfd), input_bfd,
bfd_printable_name (output_bfd));
}
- else
+ else if (bfd_count_sections (input_bfd))
{
+ /* If the input bfd has no contents, it shouldn't set the
+ private data of the output bfd. */
+
bfd_error_handler_type pfn = NULL;
/* If we aren't supposed to warn about mismatched input