[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with binutils-2.14 on sparc-sun-solaris
From: |
Alan Modra |
Subject: |
Re: problems with binutils-2.14 on sparc-sun-solaris |
Date: |
Thu, 19 Jun 2003 22:49:11 +0930 |
User-agent: |
Mutt/1.4i |
On Thu, Jun 19, 2003 at 12:44:31PM +0200, Michael van Elst wrote:
> On Thu, Jun 19, 2003, Alan Modra wrote:
>
> > On Thu, Jun 19, 2003 at 10:04:02AM +0200, Michael van Elst wrote:
> > > I will try to reapply your patches to the binutils-2.14 sources.
> >
> > I doubt that will work as there were some later changes.
>
> Yet it does. gcc now builds successfully.
:) I had a look through changelogs to find what I did here. Seems
like the following should fix your problem too.
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
reloc overflow on discarded eh_frame entries.
Index: bfd/elf64-sparc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sparc.c,v
retrieving revision 1.72
diff -u -p -r1.72 elf64-sparc.c
--- bfd/elf64-sparc.c 30 May 2003 15:50:11 -0000 1.72
+++ bfd/elf64-sparc.c 19 Jun 2003 13:18:04 -0000
@@ -2684,7 +2684,7 @@ sparc64_elf_relocate_section (output_bfd
overflows. We don't, but this breaks stabs debugging
info, whose relocations are only 32-bits wide. Ignore
overflows for discarded entries. */
- if (r_type == R_SPARC_32
+ if ((r_type == R_SPARC_32 || r_type == R_SPARC_DISP32)
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) == (bfd_vma) -1)
break;
--
Alan Modra
IBM OzLabs - Linux Technology Centre