From a5b9b9c8156a12b91f7e5c1fb8ef5132ae22cb6c Mon Sep 17 00:00:00 2001 From: cjs Date: Wed, 30 Dec 1998 15:09:04 +0000 Subject: [PATCH] Include sys/resource.h, because otherwise RLIMIT_STACK is not set and ld does not bump up its stack limit. This causes large links (such as the kernel) to segfault on machines with a small stack limit (particularly sparc, .5 MB). --- gnu/usr.bin/ld/ld/ld.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/ld/ld/ld.c b/gnu/usr.bin/ld/ld/ld.c index 1218619edd3b..7014e9ac3f1d 100644 --- a/gnu/usr.bin/ld/ld/ld.c +++ b/gnu/usr.bin/ld/ld/ld.c @@ -1,4 +1,4 @@ -/* $NetBSD: ld.c,v 1.62 1998/12/17 14:34:51 pk Exp $ */ +/* $NetBSD: ld.c,v 1.63 1998/12/30 15:09:04 cjs Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -73,6 +73,7 @@ #include #include #include +#include #include #include #include @@ -87,7 +88,7 @@ #ifndef lint /* from: "@(#)ld.c 6.10 (Berkeley) 5/22/91"; */ -__RCSID("$NetBSD: ld.c,v 1.62 1998/12/17 14:34:51 pk Exp $"); +__RCSID("$NetBSD: ld.c,v 1.63 1998/12/30 15:09:04 cjs Exp $"); #endif /* not lint */ #define GNU_BINUTIL_COMPAT /* forwards compatiblity with binutils 2.x */