This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MIPS/BFD: Adjust the comment about DT_MIPS_RLD_MAP
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: <binutils at sourceware dot org>
- Cc: Richard Sandiford <rdsandiford at googlemail dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 2 Aug 2012 17:15:26 +0100
- Subject: [PATCH] MIPS/BFD: Adjust the comment about DT_MIPS_RLD_MAP
Hi,
It is not true (anymore?) that GDB only looks at the first of DT_DEBUG,
DT_MIPS_RLD_MAP dynamic tags it encounters. Here's an update to the
comment around related code. OK to apply?
2012-08-02 Maciej W. Rozycki <macro@codesourcery.com>
bfd/
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Update the
comment on DT_MIPS_RLD_MAP.
Maciej
binutils-bfd-mips-rld-map.diff
Index: binutils-fsf-trunk-quilt/bfd/elfxx-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/bfd/elfxx-mips.c 2012-07-26 02:30:35.181780745 +0100
+++ binutils-fsf-trunk-quilt/bfd/elfxx-mips.c 2012-07-26 02:30:37.681785764 +0100
@@ -9180,8 +9180,8 @@ _bfd_mips_elf_size_dynamic_sections (bfd
/* SGI object has the equivalence of DT_DEBUG in the
DT_MIPS_RLD_MAP entry. This must come first because glibc
- only fills in DT_MIPS_RLD_MAP (not DT_DEBUG) and GDB only
- looks at the first one it sees. */
+ only fills in DT_MIPS_RLD_MAP (not DT_DEBUG) and some tools
+ may only look at the first one they see. */
if (!info->shared
&& !MIPS_ELF_ADD_DYNAMIC_ENTRY (info, DT_MIPS_RLD_MAP, 0))
return FALSE;