ia64 and gcc problem with the option of dynamic-linker

William <[email protected]> Tue, 14 Feb 2006 11:46:50 +0900
Newsgroups gmane.linux.redhat.ia64.general
Message-ID <[email protected]>
--===============2094006083==
Content-Type: multipart/alternative; 
	boundary="----=_Part_9612_29260877.1139885210809"

------=_Part_9612_29260877.1139885210809
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

       Could u please give me some directions? I encounter a problem on
ia64. For example: there is program hello.c
#include <stdio.h>
int
main() {
   printf("hello, world\n");
   return 0;
}
and another program myld.c, then compile myld.c  with gcc and option static
#include <stdio.h>
int
main(){
   printf("myld\n");
   return 0;
}

Then when compiling hello.c with gcc, I use the dynamic-linker option to
point to myld.so(complied from myld.c),
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.

------=_Part_9612_29260877.1139885210809
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

&nbsp; &nbsp; &nbsp;&nbsp; Could u please give me some directions? I
encounter a problem on ia64. For example: there is program hello.c<br>

#include &lt;stdio.h&gt;<br>

int <br>

main() {<br>

&nbsp;&nbsp; printf(&quot;hello, world\n&quot;);<br>

&nbsp;&nbsp; return 0;<br>

}<br>

and another program myld.c, then compile myld.c&nbsp; with gcc and option s=
tatic<br>

#include &lt;stdio.h&gt;<br>

int<br>

main(){<br>

&nbsp;&nbsp; printf(&quot;myld\n&quot;);<br>

&nbsp;&nbsp; return 0;<br>

}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>
<br>
Then when compiling hello.c with gcc, I use the dynamic-linker option to po=
int to myld.so(complied from myld.c), <br>

On i386 or x86_64 platform, when executing hello, it will output &quot;myld=
&quot;, which is OK;
but on ia64, it will hang up in executing, would u please tell me y?
Thank u very much.

------=_Part_9612_29260877.1139885210809--


--===============2094006083==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ia64-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ia64-list
--===============2094006083==--