bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/4023] Default rpath does not respect sysroot


From: kstemen at centeris dot com
Subject: [Bug ld/4023] Default rpath does not respect sysroot
Date: 3 Mar 2007 11:25:37 -0000

------- 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:
address@hidden ~]$ 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:
address@hidden ~]$ ./hello 
Hello world
address@hidden ~]$ ldd hello 
hello needs:
         /usr/lib/libc.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
address@hidden ~]$ 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               
address@hidden ~]$ gcc hello.c -o hello_native
address@hidden ~]$ ldd hello_native 
hello_native needs:
         /usr/lib/libc.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
address@hidden ~]$ 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               
address@hidden ~]$ 


-- 
           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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]