------- Additional Comments From kstemen at centeris dot com 2007-03-03 11:25
-------
I tested it on AIX. The rpath doesn't match what gcc does on AIX, but it works.
It would take more than a sysroot to match what the native gcc does. If you're
ok with my updated patch, please close the bug.
Here's what I used to compile on FC6 x86_64:
[EMAIL PROTECTED] ~]$ powerpc-ibm-aix5.3.0-gcc hello.c -o hello
Here's the rpath info of it, and the output from the native gcc version:
[EMAIL PROTECTED] ~]$ ./hello
Hello world
[EMAIL PROTECTED] ~]$ ldd hello
hello needs:
/usr/lib/libc.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
[EMAIL PROTECTED] ~]$ dump -H hello
hello:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000000e 0x00000077 0x000000af
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000002 0x00000704 0x00000039 0x000007b3
***Import File Strings***
INDEX PATH BASE MEMBER
0
/usr/lib64/gcc/powerpc-ibm-aix5.3.0/4.1.1:/usr/lib64/gcc/powerpc-ibm-aix5.3.0/4.1.1/../../../../powerpc-ibm-aix5.3.0/lib:/usr/lib:/usr/local/lib:/lib:/usr/lib
1 libc.a shr.o
[EMAIL PROTECTED] ~]$ gcc hello.c -o hello_native
[EMAIL PROTECTED] ~]$ ldd hello_native
hello_native needs:
/usr/lib/libc.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
[EMAIL PROTECTED] ~]$ dump -H hello_native
hello_native:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000000f 0x00000073 0x0000008d
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000002 0x000006ec 0x00000052 0x00000779
***Import File Strings***
INDEX PATH BASE MEMBER
0
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib
1 libc.a shr.o
[EMAIL PROTECTED] ~]$
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sources dot |nickc at redhat dot com
|redhat dot com |
Status|WAITING |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=4023
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils