This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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."



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]