Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/gnu/usr.bin/ld/ld Pull up revision 1.32 (requested by m...
details: https://anonhg.NetBSD.org/src/rev/4e4804bf1e4d
branches: netbsd-1-4
changeset: 470039:4e4804bf1e4d
user: he <he%NetBSD.org@localhost>
date: Sat Jan 15 17:16:33 2000 +0000
description:
Pull up revision 1.32 (requested by mycroft):
More alloca() -> malloc() changes, so that large shared libraries
built with `-g' can be linked.
diffstat:
gnu/usr.bin/ld/ld/rrs.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 02161c12747c -r 4e4804bf1e4d gnu/usr.bin/ld/ld/rrs.c
--- a/gnu/usr.bin/ld/ld/rrs.c Sat Jan 15 17:16:11 2000 +0000
+++ b/gnu/usr.bin/ld/ld/rrs.c Sat Jan 15 17:16:33 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rrs.c,v 1.29.2.1 2000/01/15 16:07:23 he Exp $ */
+/* $NetBSD: rrs.c,v 1.29.2.2 2000/01/15 17:16:33 he Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1016,8 +1016,8 @@
* to collect them in.
*/
symsize = number_of_rrs_symbols * rrs_symbol_size;
- nlp = rrs_symbols = (struct nzlist *)alloca(symsize);
- rrs_strtab = (char *)alloca(rrs_strtab_size);
+ nlp = rrs_symbols = (struct nzlist *)malloc(symsize);
+ rrs_strtab = (char *)malloc(rrs_strtab_size);
#define INCR_NLP(p) ((p) = (struct nzlist *)((long)(p) + rrs_symbol_size))
@@ -1229,6 +1229,9 @@
mywrite(name, strlen(name) + 1, 1, outstream);
}
+
+ free(rrs_symbols);
+ free(rrs_strtab);
}
void
Home |
Main Index |
Thread Index |
Old Index