From owner-freebsd-current Thu Feb 14 16:23: 4 2002 Delivered-To: freebsd-current@freebsd.org Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by hub.freebsd.org (Postfix) with ESMTP id 9E59F37B402; Thu, 14 Feb 2002 16:23:01 -0800 (PST) Received: (from ak03@localhost) by h132-197-179-27.gte.com (8.11.6/8.11.6) id g1F0MxH16046; Thu, 14 Feb 2002 19:22:59 -0500 (EST) (envelope-from ak03) Date: Thu, 14 Feb 2002 19:22:59 -0500 From: "Alexander N. Kabaev" To: "David O'Brien" Cc: "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: <20020215002259.GA15937@kanpc.gte.com> References: <20020213145902.GA20062@nagual.pp.ru> <20020213070251.A5321@dragon.nuxi.com> <1013613282.51362.9.camel@vbook.express.ru> <20020213075240.A5788@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020213075240.A5788@dragon.nuxi.com> User-Agent: Mutt/1.3.27i 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 > 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. I still need some time in debugger to find a proper way to fix this. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message