This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ELFPPC32 / final link failed: Bad value
On Fri, 19 Jan 2007 11:06:02 +0000
Nick Clifton <nickc@redhat.com> wrote:
> > Any hint ?
>
> Edit the source and extend the error message ?
I was afraid this would be the only option left ;-) Actually, I may have
an idea of the reason behind the link failure, but if it is the correct
one, I won't be really happy either :
One bugfix involved adjusting r_offset in the Elf32_Rela structs for
relocations involving half16 storage units, since the corresponding
Mach-O reloc types point to the whole instruction, not only the
affected 16 bits. But this means I'm generating "unaligned" r_offsets
in 4-byte aligned sections.
Could this be the cause ?
(Yes, I'll probably end up digging in the sources anyway , but an
external opinion is always welcome)
> Alternatively try using the readelf tool.
I've used readelf quite extensively lately. A very useful tool :-)
Anyway, thanks for your advice
Simon