From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7611 invoked by alias); 3 Jul 2002 11:35:22 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 7590 invoked from network); 3 Jul 2002 11:35:16 -0000 Received: from unknown (HELO mail1.uk.neceur.com) (193.116.254.3) by sources.redhat.com with SMTP; 3 Jul 2002 11:35:16 -0000 Received: from cerberus.uk.neceur.com (cerberus.uk.neceur.com [172.29.14.12]) by mail1.uk.neceur.com (Switch-2.1.4/Switch-2.1.0) with ESMTP id g63BZ9H08272; Wed, 3 Jul 2002 12:35:10 +0100 (BST) Received: from ldn-hermes.uk.neceur.com (localhost [127.0.0.1]) by cerberus.uk.neceur.com (Switch-2.1.4/Switch-2.1.0) with ESMTP id g63BY4Y04113; Wed, 3 Jul 2002 12:34:04 +0100 (BST) Received: from thoth.uk.neceur.com ([172.29.7.4]) by ldn-hermes.uk.neceur.com (Lotus Domino Release 5.0.10) with ESMTP id 2002070312350639:128126 ; Wed, 3 Jul 2002 12:35:06 +0100 Subject: Re: hppa64-hp-hpux11.00: HP ELF64 brokeness (incorrect .dynamic section) To: law@redhat.com Cc: binutils@sources.redhat.com Message-ID: From: ross.alexander@uk.neceur.com Date: Wed, 03 Jul 2002 05:14:00 -0000 MIME-Version: 1.0 Content-type: multipart/mixed; Boundary="0__=0FBBE178DFAEB86B8f9e8a93df938690918c0FBBE178DFAEB86B" Content-Disposition: inline X-SW-Source: 2002-07/txt/msg00064.txt.bz2 --0__=0FBBE178DFAEB86B8f9e8a93df938690918c0FBBE178DFAEB86B Content-type: text/plain; charset=us-ascii Content-length: 2456 HP have sent me a copy of ld64 with the bug fixed but here is the patch anyway. bfd/Changelog * elf.c (bfd_elf_get_bfd_needed_list): Current HP ld64 and existing shared libraries erronously set sh_link in the .dynamic section to 0. It should be set to the index of the .dynstr section. Should be fixed on ld patches later than PHSS_26262 as HP has produced a site specific fix. (See attached file: elf.c.patch) --------------------------------------------------------------------------------- Ross Alexander "He knows no more about his MIS - NEC Europe Limited destiny than a tea leaf knows Work ph: +44 20 8752 3394 the history of East India Company" |---------+------------------------------> | | Jeff Law | | | | | | | | | 02/07/2002 19:23 | | | Please respond to | | | law | | | | |---------+------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: ross.alexander@uk.neceur.com | | cc: binutils@sources.redhat.com | | Subject: Re: hppa64-hp-hpux11.00: HP ELF64 brokeness (incorrect .dynamic section) | >------------------------------------------------------------------------------------------------------------| In message , ross.alexan der@uk.neceur.com writes: > > I don't mind producing a patch to create a workaround (it is very straight > forward, for a change) or we could produce a program which 'corrects' the > defective libraries. However, because these are system libraries, a lot > of people may be unwilling to go near then. I suspect "fixing" the defective libraries won't be palatable to most folks. If we can engineer a clean workaround in bfd so that we can deal with the broken libraries in a sane way that would probably be best. jeff --0__=0FBBE178DFAEB86B8f9e8a93df938690918c0FBBE178DFAEB86B Content-type: application/octet-stream; name="elf.c.patch" Content-Disposition: attachment; filename="elf.c.patch" Content-Transfer-Encoding: base64 Content-length: 818 KioqIGJpbnV0aWxzLTAyMDcwMi9iZmQvZWxmLmMub3JpZwlUdWUgSnVsICAy IDA1OjMxOjIyIDIwMDIKLS0tIGJpbnV0aWxzLTAyMDcwMi9iZmQvZWxmLmMJ V2VkIEp1bCAgMyAxMjowNzozMyAyMDAyCioqKioqKioqKioqKioqKgoqKiog MTU2OCwxNTczICoqKioKLS0tIDE1NjgsMTU4MCAtLS0tCiAgCiAgICBzaGxp bmsgPSBlbGZfZWxmc2VjdGlvbnMgKGFiZmQpW2VsZnNlY10tPnNoX2xpbms7 CiAgCisgLyogSFAgRUxGIGxpbmtlciBicm9rZW5lc3MuICBUaGUgc2hfbGlu ayBvbiBkeW5hbWljIGlzIHNldCB0byAwLiAqLworICAgaWYgKHNobGluayA9 PSAwKQorICAgICB7CisgICAgICAgYXNlY3Rpb24gKmR5bnN0ciA9IGJmZF9n ZXRfc2VjdGlvbl9ieV9uYW1lKGFiZmQsICIuZHluc3RyIik7CisgICAgICAg c2hsaW5rID0gX2JmZF9lbGZfc2VjdGlvbl9mcm9tX2JmZF9zZWN0aW9uIChh YmZkLCBkeW5zdHIpOworICAgICB9CisgCiAgICBleHRkeW5zaXplID0gZ2V0 X2VsZl9iYWNrZW5kX2RhdGEgKGFiZmQpLT5zLT5zaXplb2ZfZHluOwogICAg c3dhcF9keW5faW4gPSBnZXRfZWxmX2JhY2tlbmRfZGF0YSAoYWJmZCktPnMt PnN3YXBfZHluX2luOwogIAo= --0__=0FBBE178DFAEB86B8f9e8a93df938690918c0FBBE178DFAEB86B--