This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU hash-style compatibility problem on x86_64


On Tue, Aug 14, 2007 at 07:35:03PM -0400, DJ Delorie wrote:
> Greg Schafer <gschafer@zip.com.au> writes:
> > I can understand HJ's response in that there isn't much incentive to fix
> > bugs in an old binutils release, but I was kind of hoping one of the experts
> > here might be able to pinpoint the problem and produce a minimal patch.
> 
> Try this one:
> 
> --- bfd/elf.c       3 Aug 2006 21:41:05 -0000
> +++ bfd/elf.c       3 Aug 2007 01:13:57 -0000
> @@ -1822,6 +1822,7 @@ bfd_section_from_shdr (bfd *abfd, unsign
>      case SHT_FINI_ARRAY:       /* .fini_array section.  */
>      case SHT_PREINIT_ARRAY:    /* .preinit_array section.  */
>      case SHT_GNU_LIBLIST:      /* .gnu.liblist section.  */
> +    case SHT_GNU_HASH:         /* .gnu.hash section.  */
>        return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
>  
>      case SHT_DYNAMIC:  /* Dynamic linking information.  */
> 

Heh, it works. Thanks a lot!

In addition to the above, I just needed the corresponding define in
include/elf/common.h to make it build.

But it's still a mystery why x86 and ppc don't need this.. oh well.

Regards
Greg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]