From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2374 invoked by alias); 15 Aug 2007 00:58:44 -0000 Received: (qmail 744 invoked by uid 22791); 15 Aug 2007 00:58:41 -0000 X-Spam-Check-By: sourceware.org Received: from mailout1-1.pacific.net.au (HELO mailout1.pacific.net.au) (61.8.2.208) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Aug 2007 00:58:32 +0000 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id BBDE1396FBC; Wed, 15 Aug 2007 10:58:28 +1000 (EST) Received: from eyo32.local (ppp56D0.dsl.pacific.net.au [125.255.22.208]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id A120927420; Wed, 15 Aug 2007 10:58:28 +1000 (EST) Received: from gws by eyo32.local with local (Exim 4.63) (envelope-from ) id 1IL7DQ-0000Kj-I6; Wed, 15 Aug 2007 10:58:28 +1000 Date: Wed, 15 Aug 2007 00:58:00 -0000 From: Greg Schafer To: DJ Delorie Cc: binutils@sourceware.org Subject: Re: GNU hash-style compatibility problem on x86_64 Message-ID: <20070815005828.GA1267@eyo32.local> References: <20070814125638.GA11842@caradoc.them.org> <20070814224531.GA5638@eyo32.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00213.txt.bz2 On Tue, Aug 14, 2007 at 07:35:03PM -0400, DJ Delorie wrote: > Greg Schafer 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