[Bug binutils/2676] New: ld and shared libraries

2006-05-20 Thread Philippe dot Vouters at laposte dot net
I noticed that, instead of inserting a soft shared library link inside the
executable, Linux linker (ld) inserts the resolved shared library name. This
forces programs to be relinked each time an actual shared library name has
changed, after any upgrade either using yum or distribution upgrades. This
prevents me from using programs which are shipped within an RPM and are linked
under FC4, such as Openwengoo among some. Providing ldd would show a soft link,
this would enable to more easily distribute executable programs.

HP Unices (HP-UX and Tru64) linkers only inserts in the programs the soft link,
enabling to easily install library patches with a different extension without
having to relink all programs.

So I'd like to report this wish to ld and dl (dynamic loader) maintainers so
that soft shared libraries links are used instead.

Reproducer:

[EMAIL PROTECTED] ~]$ cat hello.c
#include 
int main(){
printf("Hello!\n");
return 1;
}
[EMAIL PROTECTED] ~]$ cc -c  hello.c
[EMAIL PROTECTED] ~]$ cc -o hello -lc hello.o
[EMAIL PROTECTED] ~]$ ldd hello
linux-gate.so.1 =>  (0x00a1b000)
libc.so.6 => /lib/libc.so.6 (0x001a6000)
/lib/ld-linux.so.2 (0x0018b000)

-- 
   Summary: ld and shared libraries
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: Philippe dot Vouters at laposte dot net
CC: Philippe dot Vouters at laposte dot net,bug-binutils at
gnu dot org


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

--- 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 binutils/2676] ld and shared libraries

2006-05-20 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2006-05-20 
12:38 ---
Not a ld bug/enhancement.  ld uses the soname of the library.

$ readelf -d /lib/libc.so.6 | grep SONAME
 0x000e (SONAME) Library soname: [libc.so.6]


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


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

--- 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 binutils/2584] SIGSEGV in strings tool when the file is crafted.

2006-05-20 Thread alec at thened dot net

--- Additional Comments From alec at thened dot net  2006-05-20 14:13 
---
This is CVE-2006-2362.

-- 


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

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