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: Richard Sandiford <richard at codesourcery dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 19 Oct 2006 17:00:23 +0100
- Subject: Re: Don't add DT_DEBUG to MIPS shared libraries
- References: <87wt6wlnmn.fsf@talisman.home> <45379F5A.1050308@avtrex.com>
David Daney <ddaney@avtrex.com> writes:
> Richard Sandiford wrote:
>> bfd/
>> * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG
>> and DT_MIPS_RLD_MAP tags for position-independent executables.
>> Do not add DT_DEBUG to shared libraries for any MIPS target.
>>
>> ld/testsuite/
>> * ld-mips-elf/multi-got-1.d: Remove DT_DEBUG tag. Do not require
>> a specific file offset for .dynamic. Reduce DT_HASH by 8 to account
>> for removed tag.
>> * ld-mips-elf/tls-multi-got-1.r: Likewise. Also reduce DT_REL by 8.
>> Reduce PLTGOT and symbol values by 16 to account for the removed tag.
>> * ld-mips-elf/textrel-1.d: Remove DT_DEBUG tag.
>> * ld-mips-elf/rel32-n32.d: Reduce addresses by 16 to account for
>> removed DT_DEBUG tag.
>> * ld-mips-elf/rel64.d: Likewise.
>> * ld-mips-elf/tls-multi-got-1.got: Likewise.
>> * ld-mips-elf/tlslib-o32-hidden.got: Likewise.
>
> This may break libgcj. I think the boehm-gc uses DT_DEBUG in libgcj.so.
Doh! Thanks for the heads-up. I was completely unaware of this
potential issue.
> Really I think it is a good idea as I would very much like to to
> pre-linking. On the off chance that it does break libgcj, I will fix it.
That's great, thanks. ;)
Richard