[LLVMbugs] [Bug 151] NEW: -load options output incorrectly when linking c++ prog

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Sun Nov 23 19:41:52 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=151

           Summary: -load options output incorrectly when linking c++ prog
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gccld
        AssignedTo: criswell at uiuc.edu
        ReportedBy: gaeke+bugs at uiuc.edu


Currently something bad is happening when you link C++ programs:
111 zion> echo 'int main () { return 0; }'> baz.cc
112 zion> llvm-g++ -o baz.llvm baz.cc
113 zion> cat baz.llvm
#!/bin/sh
lli \
   
-load=/home/vadve/lattner/local/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../libstdc++.so
\
    -load=/usr/lib/libm.so \
    $0.bc $*
114 zion> file
/home/vadve/lattner/local/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../libstdc++.so
/home/vadve/lattner/local/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../libstdc++.so:
symbolic link to libstdc++.so.6.0.0
# now we note that the symlinked file is in fact a bytecode file:
115 zion> echo `dd
if=/home/vadve/lattner/local/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../libstdc++.so.6.0.0
bs=1c count=4`
4+0 records in
4+0 records out
llvm
116 zion>

gccld should never output a shell script containing a -load option which names a
bytecode file, or a symlink to a bytecode file, or an archive, no matter what
its name is (at least, not until we have dlopen() for bytecode files :-)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list