ld -Ttext 0x80000 causes ld.so segfault on ppc-unknown-linux-gnu
Alan Modra
alan@linuxcare.com.au
Sun Jul 9 21:06:00 GMT 2000
On Mon, 10 Jul 2000, Alan Modra wrote:
> gcc -o hello -static -Wl,-T,elf_i386.x,--section-start,.interp=0x80000 \
> hello.c
>
> elf_i386.x is the standard linker script with SIZEOF_HEADERS replaced with
> 1024, and it assumes you have a linker with working --section-start,
> ie. CVS as of today.
Uh, actually, there's no need to use a modified linker script with the
above. ie.
gcc -o hello -static -Wl,--section-start,.interp=0x80000 hello.c
works fine. Unfortunately, this trick doesn't work for shared libraries.
--
Linuxcare. Support for the Revolution.
More information about the Binutils
mailing list