From owner-freebsd-ports Thu Feb 14 17: 0:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9EA1B37B404 for ; Thu, 14 Feb 2002 17:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1F103N52424; Thu, 14 Feb 2002 17:00:03 -0800 (PST) (envelope-from gnats) Date: Thu, 14 Feb 2002 17:00:03 -0800 (PST) Message-Id: <200202150100.g1F103N52424@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Bjoern Fischer Subject: Re: ports/34908: libpng port makes bad dynamic library on -CURRENT Reply-To: Bjoern Fischer Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/34908; it has been noted by GNATS. From: Bjoern Fischer 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 Date: Fri, 15 Feb 2002 01:54:52 +0100 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-ports" in the body of the message