This is the mail archive of the
mailing list for the binutils project.
[MIPS] Check info->executable to create DT_MIPS_RLD_MAP
- From: Chao-Ying Fu <Chao-Ying dot Fu at imgtec dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, 'Richard Sandiford' <rdsandiford at googlemail dot com>
- Date: Sat, 22 Jun 2013 00:00:32 +0000
- Subject: [MIPS] Check info->executable to create DT_MIPS_RLD_MAP
When using "-pie", LD doesn't create the DT_MIPS_RLD_MAP entry,
because LD checks "!info->shared" and the "-pie" flag sets "info->shared" to true.
Note that LD checks "info->executable" to create DT_DEBUG, and
creating DT_MIPS_RLD_MAP should be similar to creating DT_DEBUG.
/* 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 some tools
may only look at the first one they see. */
&& !MIPS_ELF_ADD_DYNAMIC_ENTRY (info, DT_MIPS_RLD_MAP, 0))
/* The DT_DEBUG entry may be filled in by the dynamic linker and
used by the debugger. */
&& !SGI_COMPAT (output_bfd)
&& !MIPS_ELF_ADD_DYNAMIC_ENTRY (info, DT_DEBUG, 0))
Any feedback about checking "info->executable" to create DT_MIPS_RLD_MAP and related stuffs?
Thanks a lot!