This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ld -Ttext 0x80000 causes ld.so segfault on ppc-unknown-linux-gnu


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]