bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld for sparc64 crashes when fed with wrong .o files


From: Alan Modra
Subject: Re: ld for sparc64 crashes when fed with wrong .o files
Date: Sat, 8 Jun 2002 01:53:21 +0930
User-agent: Mutt/1.3.25i

On Fri, Jun 07, 2002 at 02:48:57PM +0200, Bruno Haible wrote:
> Hi,
> 
> GNU ld, configured for sparc64, crashes when given Sparc64 object files
> together with -m elf32_sparc.

Hmm, I made some changes on 2002-04-16 to prevent this sort of crash.
Looks like I wasn't restrictive enough in this case.  Try the
following:

        * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
        table is elf64-sparc.

Index: bfd/elf64-sparc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sparc.c,v
retrieving revision 1.54
diff -u -p -r1.54 elf64-sparc.c
--- bfd/elf64-sparc.c   5 Jun 2002 13:32:02 -0000       1.54
+++ bfd/elf64-sparc.c   7 Jun 2002 16:22:22 -0000
@@ -1386,7 +1386,7 @@ sparc64_elf_add_symbol_hook (abfd, info,
       return true;
     }
   else if (*namep && **namep
-          && info->hash->creator->flavour == bfd_target_elf_flavour)
+          && info->hash->creator == abfd->xvec)
     {
       int i;
       struct sparc64_elf_app_reg *p;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]