From owner-freebsd-current Wed Feb 13 15:54:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 0033A37B416; Wed, 13 Feb 2002 15:54:29 -0800 (PST) Received: from pool0084.cvx21-bradley.dialup.earthlink.net ([209.179.192.84] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16b9EJ-00064k-00; Wed, 13 Feb 2002 15:54:29 -0800 Message-ID: <3C6AFCA9.ADA95152@mindspring.com> Date: Wed, 13 Feb 2002 15:54:17 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: obrien@FreeBSD.ORG Cc: "Vladimir B. Grebenschikov" , FreeBSD-gnats-submit@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: ports/34908: libpng port makes bad dynamic library on -CURRENT References: <20020213145902.GA20062@nagual.pp.ru> <20020213070251.A5321@dragon.nuxi.com> <1013613282.51362.9.camel@vbook.express.ru> <20020213075240.A5788@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David O'Brien wrote: > On Wed, Feb 13, 2002 at 06:14:42PM +0300, Vladimir B. Grebenschikov wrote: > > building programm with -g gives no more information at all, I have tried > > Linking aginst static library - works. > > This suggests a problem with the runtime-linker (rtld), not binutils. Works with the old binutils on 4.5, though... that suggests that it's *not* a problem with the rtld, rather a problem with what has changed. There was a problem on the Alpha based on an assumption about where one section started and another ended that was not true with the new binutils, but was true with the old ones. Perhaps x86 has this same problem (i.e. assumption that's true with the old binutils, but not the new, about section ordering), only it is not as pronounced because of the alignment insensitivity of the x86 relative to the alpha. This implies that certain sections would be mapped twice, and work on the x86, unless they got large enough to spill over to a second page (the way ELF works). I'd look there, first. What would be useful, then, is an objdump on both programs and both shared libraries to see the section layouts relative to what ld.so is expecting. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message