This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Force DT_FLAGS to always be added to the dynamic section
- From: ross dot alexander at uk dot neceur dot com
- To: binutils at sources dot redhat dot com
- Date: Mon, 14 Oct 2002 12:11:29 +0100
- Subject: PATCH: Force DT_FLAGS to always be added to the dynamic section
The latest ld patch for HPUX 11.00 (PHSS_26559) requires the DT_FLAGS
to be present in the dynamic section even if it is zero. Otherwise the
following warning will occur if chatr (note this ld change does not
actually
affect executing).
chatr(warning): file "make" appears to be corrupted and does not have a
DT_FLAGS dynamic table entry. Therefore, the -B options will not function
properly.
Changelog
2002-10-14 Ross Alexander <ross.alexander@uk.neceur.com>
* elf64-hppa.c: Force DT_FLAGS to always be set. Required by HPUX
11.00 patch PHSS_26559.
*** elf64-hppa.c.orig Thu Oct 10 08:01:38 2002
--- elf64-hppa.c Fri Oct 11 13:42:45 2002
***************
*** 1854,1860 ****
|| !add_dynamic_entry (DT_HP_LOAD_MAP, 0))
return false;
}
!
if (plt)
{
if (!add_dynamic_entry (DT_PLTRELSZ, 0)
--- 1854,1861 ----
|| !add_dynamic_entry (DT_HP_LOAD_MAP, 0))
return false;
}
! if (!add_dynamic_entry (DT_FLAGS, (info)->flags))
! return false;
if (plt)
{
if (!add_dynamic_entry (DT_PLTRELSZ, 0)
---------------------------------------------------------------------------------
Ross Alexander "We demand clearly defined
MIS - NEC Europe Limited boundaries of uncertainty and
Work ph: +44 20 8752 3394 doubt."