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: Special names tha ld needs to recognize for hppa64-hp-hpux11.X


In message <200202121905.g1CJ59MI026367@hiauly1.hia.nrc.ca>, "John David Anglin
" writes:
 > I have confirmed that we do in fact have a .opd entry for do_exitcu.
OK.  Good.

 > Thus, The problem must be that we are doing the relocations for
 > R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_FPTR14DR incorrectly.
Maybe.

 > It would appear that we are using the function address rather than the
 > address of the .opd entry.
Most likely.

 > I think I see the problem.  See line 1654 in elf-hppa.h.  I think we
 > need to use the .opd address for the LTOFF relocations, not the DLT
 > offset.
Odd.  According to my reading of the the ABI, I believe that code is
correct.  The LTOFF_FPTR21L and LTOFF_FPTR14DR relocs should be referencing
the DLT, not accessing the .opd directly.

However, that interpretation directly conflicts with the code you found
in exitcu.o.  Ugh.

My ABI is V1.43 Oct 6, 1997.

Could you check the HP web site and see if there's a newer version and
see what formula they give for the LTOFF relocations?  You can probably
find it by searching for ELF.  You're looking for the
"Processor-Specific ELF Supplement for PA-RISC".

jeff





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