[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


           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
lli \
    -load=/usr/lib/libm.so \
    $0.bc $*
114 zion> file
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
bs=1c count=4`
4+0 records in
4+0 records out
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