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,
[EMAIL PROTECTED] http://pobox.com/~mellon/
"Angels can fly because they take themselves lightly" - G.K.Chesterton

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to