--- 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 #RELOCentLENidSTR
0x0001 0x000e 0x0077 0x00af
#IMPfilIDOFFidSTR LENstrTBLOFFstrTBL
0x0002 0x0704 0x0039 0x07b3
***Import File Strings***
INDEX PATH BASEMEMBER
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
1libc.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 #RELOCentLENidSTR
0x0001 0x000f 0x0073 0x008d
#IMPfilIDOFFidSTR LENstrTBLOFFstrTBL
0x0002 0x06ec 0x0052 0x0779
***Import File Strings***
INDEX PATH BASEMEMBER
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
1libc.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
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils