Re: ia64 and gcc problem with the option of dynamic-linker

James E Wilson <[email protected]> 14 Feb 2006 11:41:27 -0800
Newsgroups gmane.linux.redhat.ia64.general
Message-ID <[email protected]>
On Mon, 2006-02-13 at 18:46, William wrote:
> On i386 or x86_64 platform, when executing hello, it will output
> "myld", which is OK; but on ia64, it will hang up in executing, would
> u please tell me y? Thank u very much.

I just tried this on a debian unstable system, and it seemed to work.
    % gcc -static myld.c -o myld.so
    % gcc hello.c -Wl,--dynamic-linker,myld.so
    % ./a.out
    myld
You may need to give more info about what exactly you did, and on what
system, e.g. what OS, what gcc version, what binutils (linker) version,
what your exact gcc command lines were, etc.