bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/570] New: -rpath changed ?


From: i-krabbe at versanet dot de
Subject: [Bug ld/570] New: -rpath changed ?
Date: 23 Nov 2004 09:26:29 -0000

This may be no bug report but may be a question.  It just founds on the 
experience what happened today: 
 
Linking against -ldl  to use some self composed .so modules that live in a 
relative path "lib/", for development purposes. 
 
This used to work until yesterday, when I updated binutils to the ld version: 
GNU ld version 2.15.90.0.1.1 20040303: 
gcc -g -Wl,-E -Wl,-rpath,lib \ 
        -o bin/prog obj/main.o obj/database.o obj/program.o -ldl 
 
Today the resulting program isn't able to find it's modules in lib anymore, 
until I specify LD_LIBRARY_PATH, which makes the program work again. 
 
Its quite obvious that the loader isn't fed with the -rpath anymore.  What has 
happened to the options.  Might this be a bug.  Would it help to recompile the 
compiler or the libc ? 
 
 
FOR REFERENCE: 
The compile statement above results in the linker call: 
 
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) 
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/collect2 --eh-frame-hdr -m elf_i386 
-dynamic-linker /lib/ld-linux.so.2 -o 
bin/prog /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crt1.o 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crti.o 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtbegin.o 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/lib 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../.. -E -rpath lib obj/main.o 
obj/database.o obj/program.o -ldl -lgcc -lgcc_eh -lc -lgcc 
-lgcc_eh /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtend.o 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crtn.o 
 
Here the collect2 simply calls /usr/bin/ld with the same arguments. 
 
I already tried the other -rpath options -R and -rpath-link

-- 
           Summary: -rpath changed ?
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: i-krabbe at versanet dot de
                CC: bug-binutils at gnu dot org
  GCC host triplet: i686-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=570

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