This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld -Ttext 0x80000 causes ld.so segfault on ppc-unknown-linux-gnu
- To: anton at mips dot complang dot tuwien dot ac dot at
- Subject: Re: ld -Ttext 0x80000 causes ld.so segfault on ppc-unknown-linux-gnu
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Mon, 10 Jul 2000 14:05:08 +1000 (EST)
- cc: binutils at sourceware dot cygnus dot com
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.