Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/ld/ld fix an obvious bug when loading sun reloca...
details: https://anonhg.NetBSD.org/src/rev/f69342f5f14f
branches: trunk
changeset: 515920:f69342f5f14f
user: aymeric <aymeric%NetBSD.org@localhost>
date: Mon Oct 08 22:09:20 2001 +0000
description:
fix an obvious bug when loading sun relocatable objects.
When was this code last triggered?
XXX I didn't run the code, was looking for something else.
diffstat:
gnu/usr.bin/ld/ld/lib.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9e9925803ddd -r f69342f5f14f gnu/usr.bin/ld/ld/lib.c
--- a/gnu/usr.bin/ld/ld/lib.c Mon Oct 08 21:18:58 2001 +0000
+++ b/gnu/usr.bin/ld/ld/lib.c Mon Oct 08 22:09:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.c,v 1.23 2000/12/16 09:29:29 mycroft Exp $ */
+/* $NetBSD: lib.c,v 1.24 2001/10/08 22:09:20 aymeric Exp $ */
/*
* - library routines
@@ -662,7 +662,7 @@
(TEXT_START(entry->header) - N_TXTOFF(entry->header)),
L_SET) == (off_t)-1)
err(1, "%s: lseek", get_file_name(entry));
- if (read(fd, (char *)nzp, n) != n)
+ if (read(fd, has_nz ? (char *) nzp : (char *) np, n) != n)
errx(1, "%s: premature EOF reading symbols ",
get_file_name(entry));
Home |
Main Index |
Thread Index |
Old Index