This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Re: hppa64-hp-hpux11.00: invalid string offset for section .dynstr
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: ross dot alexander at uk dot neceur dot com
- Cc: amodra at bigpond dot net dot au, binutils at sources dot redhat dot com, law at redhat dot com
- Date: Mon, 24 Jun 2002 16:44:40 -0400 (EDT)
- Subject: 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)