From owner-freebsd-current Thu Feb 14 16:56: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from goose.prod.itd.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 289BB37B400; Thu, 14 Feb 2002 16:56:00 -0800 (PST) Received: from dialup-209.244.104.20.dial1.sanjose1.level3.net ([209.244.104.20] helo=mindspring.com) by goose.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16bWfN-0003Uh-00; Thu, 14 Feb 2002 16:55:58 -0800 Message-ID: <3C6C5C94.FCCDE556@mindspring.com> Date: Thu, 14 Feb 2002 16:55:48 -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: "Alexander N. Kabaev" Cc: David O'Brien , "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> <20020215002259.GA15937@kanpc.gte.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 "Alexander N. Kabaev" wrote: > > This suggests a problem with the runtime-linker (rtld), not binutils. > Actually, the bug is somewhere in the new binutils code, and I am very > close to finding where it is exactly. The new liker fails to set > DT_TEXTREL property in the shared library header even though its relocation > table contains several entries which refer to the code segment. As a result, > ld-elf.so.1 fails to enable writes on the text segment when relocating the > binary and crashes with SIGBUS while processing the very first relocation > record. Woohoo! He shoots, he scores! > I still need some time in debugger to find a proper way to fix this. My binutils-foo is rusty. Personally, I just reverted to the old binutils and called it a day. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message