From owner-freebsd-current Sat Feb 16 19:13:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from beastie.jocose.org (beastie.jocose.org [199.199.226.71]) by hub.freebsd.org (Postfix) with SMTP id DD86A37B400 for ; Sat, 16 Feb 2002 19:13:42 -0800 (PST) Received: (qmail 33616 invoked from network); 17 Feb 2002 04:13:34 -0000 Received: from unknown (HELO jocose.org) (10.0.0.100) by 0 with SMTP; 17 Feb 2002 04:13:34 -0000 Message-ID: <3C6F2067.1020209@jocose.org> Date: Sat, 16 Feb 2002 21:15:51 -0600 From: Peter Schultz Organization: jocose.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.8) Gecko/20020216 X-Accept-Language: en-us MIME-Version: 1.0 To: "Alexander N. Kabaev" Cc: Bjoern Fischer , current@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG, vova@sw.ru, David O'Brien Subject: Re: ports/34908: libpng port makes bad dynamic library on -CURRENT References: <3C6D49E0.3000506@gte.com> Content-Type: text/plain; charset=us-ascii; format=flowed 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: >> 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? > > No. DT_FLAGS entry is not created regardless of whether the > --enable-new-dtags parameter has been passed to the linker. Ld simply > ignores dynamic relocation entries for local symbols while checking > whether either DT_FLAGS or DT_TEXTREL should be created. Attached patch > appears to fix the problem for me and has not caused any problems on my > test box so far but I am not making any claims about its correctness. > Use on your own risk. > It's got to be at least partially correct because this patch does indeed work. I've been punishing my machine and it's doing great! Thank you, Alexander, and all. Pete... >> Are the new dtags enabled by default in the new binutils? > > No, it seems like the new dtags are disabled by default. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message