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

2007-03-03 Thread kstemen at centeris dot com

--- Additional Comments From kstemen at centeris dot com  2007-03-03 11:24 
---
Created an attachment (id=1596)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1596&action=view)
Updated patch

I had to fix part of your patch

-- 


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


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

2007-03-03 Thread kstemen at centeris dot com

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


[Bug ld/3958] ELF linker failed to handle relocation against STN_UNDEF

2007-03-03 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2007-03-03 23:06 ---
Relocation against STN_UNDEF is well defined by the gABI. Here is the updated
patch:

http://sourceware.org/ml/binutils/2007-03/msg00029.html

-- 
   What|Removed |Added

Summary|ELF linker failed to handle |ELF linker failed to handle
   |relocation against ABS  |relocation against STN_UNDEF
   |section |


http://sourceware.org/bugzilla/show_bug.cgi?id=3958

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