Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2000 05:05:29 +0000
From:      Anatoly Vorobey <mellon@pobox.com>
To:        Warner Losh <imp@village.org>
Cc:        current@freebsd.org
Subject:   Re: Internal compiler error: program ld got fatal signal 10
Message-ID:  <20000529050529.A10617@happy.checkpoint.com>
In-Reply-To: <200005282312.RAA36480@harmony.village.org>; from imp@village.org on Sun, May 28, 2000 at 05:12:05PM -0600
References:  <200005282312.RAA36480@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 28, 2000 at 05:12:05PM -0600, Warner Losh wrote:
> I get these failures on hello world:
> 
> int main() { printf("hello world\n"); }
> 
> cc -c xxx.c
> cc -o xxx xxx.o
> <ld error here>

Can you test this patch? I think I tracked down the problem. At some
point, someone added a new field into a hash table struct and didn't
add initialization for it into the general hash table struct init func.
This patch cures the problem for me. Yes, I know, vendor branch and
all :(

You need to apply the patch and remake /usr/src/gnu/usr.bin/binutils/libbfd
and then /usr/src/gnu/usr.bin/binutils/ld .

Index: elf.c
===================================================================
RCS file: /freebsd/cvs/src/contrib/binutils/bfd/elf.c,v
retrieving revision 1.6
diff -u -r1.6 elf.c
--- elf.c	2000/05/13 16:44:19	1.6
+++ elf.c	2000/05/29 04:58:34
@@ -979,6 +979,7 @@
   table->needed = NULL;
   table->hgot = NULL;
   table->stab_info = NULL;
+  table->dynlocal = NULL;
   return _bfd_link_hash_table_init (&table->root, abfd, newfunc);
 }
 
-- 
Anatoly Vorobey,
mellon@pobox.com http://pobox.com/~mellon/
"Angels can fly because they take themselves lightly" - G.K.Chesterton


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000529050529.A10617>