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]

Re: hppa64-hp-hpux11.00: HP ELF64 brokeness (incorrect .dynamic section)


HP have sent me a copy of ld64 with the bug fixed but here is the patch
anyway.

bfd/Changelog
      * elf.c (bfd_elf_get_bfd_needed_list): Current HP ld64 and existing
shared
      libraries erronously set sh_link in the .dynamic section to 0.  It
should be
      set to the index of the .dynstr section.  Should be fixed on ld
patches later
      than PHSS_26262 as HP has produced a site specific fix.

(See attached file: elf.c.patch)

---------------------------------------------------------------------------------

Ross Alexander                           "He knows no more about his
MIS - NEC Europe Limited            destiny than a tea leaf knows
Work ph: +44 20 8752 3394         the history of East India Company"


|---------+------------------------------>
|         |           Jeff Law           |
|         |           <law@porcupine.slc.|
|         |           redhat.com>        |
|         |                              |
|         |           02/07/2002 19:23   |
|         |           Please respond to  |
|         |           law                |
|         |                              |
|---------+------------------------------>
  >------------------------------------------------------------------------------------------------------------|
  |                                                                                                            |
  |       To:       ross.alexander@uk.neceur.com                                                               |
  |       cc:       binutils@sources.redhat.com                                                                |
  |       Subject:  Re: hppa64-hp-hpux11.00: HP ELF64 brokeness (incorrect .dynamic  section)                  |
  >------------------------------------------------------------------------------------------------------------|




In message <OF57EE2279.B5306762-ON80256BEA.0056AFF9@uk.neceur.com>,
ross.alexan
der@uk.neceur.com writes:
  >
  > I don't mind producing a patch to create a workaround (it is very
straight
  > forward, for a change) or we could produce a program which 'corrects'
the
  > defective libraries.  However, because these are system libraries, a
lot
  > of people may be unwilling to go near then.
I suspect "fixing" the defective libraries won't be palatable to most
folks.  If we can engineer a clean workaround in bfd so that we can deal
with the broken libraries in a sane way that would probably be best.

jeff




Attachment: elf.c.patch
Description: Binary data


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