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: PATCH: Re: hppa64-hp-hpux11.00: invalid string offset for section .dynstr


> I have tested the patch and it fixed that problem.  However, it introduces
> another one which
> could be easy to fix.

You didn't actually say what the problem is although I agree that the
EPLT relocations should be in '.rela.opd'.  This is what the code in
elf64-hppa.c tries to do.  Your test code seems to run ok when provided
with a main program.

> Binutils ld puts the relocation information into the .rela.dyn but HP ld
> puts it into .rela.opd.
> 
> 
> Relocation section '.rela.dyn' at offset 0x558 contains 1 entries:
>   Offset          Info           Type           Sym. Value    Sym. Name +
> Addend
> 8000000000001010  001300000082 R_PARISC_EPLT     40000000000015f0
> .CreateImage +

My first impression is that the linker script doesn't provide '.rela.opd'
and this is why the relocs end up in the default 'rela.dyn'.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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