weird elf header issues, is it binutils or my linker script?
Segher Boessenkool
segher at kernel.crashing.org
Fri Mar 29 23:01:15 EST 2013
> PHDRS
> {
> headers PT_PHDR PHDRS ;
> interp PT_INTERP ;
> <snip>
> }
>
> SECTIONS
> {
> /* Read-only sections, merged into text segment: */
> PROVIDE (__executable_start = 0xf2000000); . = 0xf2000000 +
> SIZEOF_HEADERS;
> .interp : { *(.interp) } :text :interp
> <snip>
> }
>
> So I'm wondering...is this something wrong with our linker script,
> or is there a bug
> in our binutils? I'm no linker expert, but the interpreter
> sections in the script
> seem to match the binutils documentation that I found and I don't
> see anything that
> would be messing with the length.
>
> Any suggestions on where to look?
It looks like your .interp input section lacks the required zero-
termination.
Segher
More information about the Linuxppc-dev
mailing list