Return-Path: Received: from mailin10.bigpond.com (unknown [139.134.6.87]) by dsl2.external.hp.com (Postfix) with ESMTP id 8AE7C482B for ; Sun, 21 Oct 2001 21:44:26 -0600 (MDT) Received: from bubble.local ([144.135.24.78]) by mailin10.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GLL9CT00.DQ1 for ; Mon, 22 Oct 2001 13:50:53 +1000 Date: Mon, 22 Oct 2001 13:14:18 +0930 From: Alan Modra To: Ben Collins , parisc-linux@lists.parisc-linux.org, randolph@tausq.org Cc: "Carlos O'Donell Jr." , Jochen Friedrich Subject: Re: [parisc-linux] Re: Fix for hppa-linux ld.so with newer binutils Message-ID: <20011022131418.N1037@bubble.sa.bigpond.net.au> References: <20011020170907.G1037@bubble.sa.bigpond.net.au> <20011020095406.L10952@visi.net> <20011021000443.H1037@bubble.sa.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20011021000443.H1037@bubble.sa.bigpond.net.au>; from amodra@bigpond.net.au on Sun, Oct 21, 2001 at 12:04:43AM +0930 List-ID: On Sun, Oct 21, 2001 at 12:04:43AM +0930, Alan Modra wrote: > alan@tea:~$ /lib/ld.so.1 > Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...] > You have invoked `ld.so', the helper program for shared library executables. > [snip] > > no problems here. > > sourceware CVS binutils as of a few minutes ago, debian glibc-2.2.4-3 > with willy's patch (ftp://ftp.parisc-linux.org/patches/glibc22-hppa.dpatch) > + mine, gcc from pehc 3.0.2 20010829. Confession time. I had one little patch in ld which disabled Jakub's combreloc code as a side-effect. (I had ldmain.c:main, link_info.spare_dynamic_tags = 0; to minimise differences between objects generated by new vs. old binutils). Setting this back to 5 gives me the segv you reported. :-( The reason is that binutils/bfd/elf32_hppa.c:elf32_hppa_reloc_type_class if (ELF32_R_SYM (rela->r_info) == 0) return reloc_class_relative; disagrees with glibc/sysdeps/hppa/dl-machine.h:elf_machine_rela_relative /* XXX Nothing to do. There is no relative relocation, right? */ The net result of this disagreement is that ld.so doesn't relocate any of the relocs in reloc_class_relative. Testing an implementation of elf_machine_rela_relative now. Alan