From owner-freebsd-current Thu Feb 14 16:59:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id B880137B400; Thu, 14 Feb 2002 16:59:33 -0800 (PST) Received: from fwd10.sul.t-online.de by mailout01.sul.t-online.com with smtp id 16bWgF-000589-00; Fri, 15 Feb 2002 01:56:51 +0100 Received: from frolic.no-support.loc (520094253176-0001@[80.130.204.108]) by fmrl10.sul.t-online.com with esmtp id 16bWgE-1PAVE0C; Fri, 15 Feb 2002 01:56:50 +0100 Received: (from bjoern@localhost) by frolic.no-support.loc (8.11.6/8.9.3) id g1F0sqn02944; Fri, 15 Feb 2002 01:54:52 +0100 (CET) (envelope-from bjoern) From: Bjoern Fischer Date: Fri, 15 Feb 2002 01:54:52 +0100 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 Message-ID: <20020215005452.GA2642@frolic.no-support.loc> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20020215002259.GA15937@kanpc.gte.com> User-Agent: Mutt/1.3.25i X-Sender: 520094253176-0001@t-dialin.net 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 On Thu, Feb 14, 2002 at 07:22:59PM -0500, 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=20 > DT_TEXTREL property in the shared library header even though its relocati= on > table contains several entries which refer to the code segment. As a resu= lt, > 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. > I still need some time in debugger to find a proper way to fix this. Interesting. Is the DF_TEXTREL flag set in DT_FLAGS instead? Is the library linked w/ -enable-new-dtags? Are the new dtags enabled by default in the new binutils? Someting in elf32.em? Currently I'm experimenting with some code that enhances the FreeBSD runtime linker to handle some newer ELF features, such as DT_RUNPATH, DT_FLAGS and ${ORIGIN} substitution sequences -Bj=F6rn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message