This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Don't add DT_DEBUG to MIPS shared libraries
- From: Sergey Rogozhkin <rogozhkin at niisi dot msk dot ru>
- To: Richard Sandiford <richard at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 29 Mar 2007 17:46:45 +0400
- Subject: Re: Don't add DT_DEBUG to MIPS shared libraries
- References: <87wt6wlnmn.fsf@talisman.home>
best to just be consistent with other targets. This patch therefore
removes DT_DEBUG tags from shared libraries and makes sure that the
PIEs do indeed get DT_DEBUG and DT_MIPS_RLD_MAP tags.
It seems this patch broke PIE startup on linux-mips. bfd/elfxx-mips.c
code creates DT_MIPS_RLD_MAP entry for pie but doesn't set its value
(leave it equal to 0). On pie startup, dynamic linker tries to save
debug structure address to the place pointed by DT_MIPS_RLD_MAP tag
value. So now it doesn't work even if pie load address is equal to its
link address. Maybe I miss something or my configuration is wrong?
I use glibc-2.3.6 and binutils-2.17.50.0.12.
Sergey Rogozhkin