[LLVMdev] IMPORTANT: llvm-ar requirements

Reid Spencer reid at x10sys.com
Sun Nov 14 15:41:47 PST 2004


Ignore this at your own peril.

I have committed changes to CVS that introduce a fully functional
llvm-ar tool, and a new lib/Linker library that uses the archive's
symbol table to hasten linking. However, this implies that archives read
by the LLVM tools *must* have an LLVM symbol table in them. This happens
automatically for the crtend.a library, but not for the runtime
libraries produced by the C/C++ Front End. In order to get your programs
to link again, you *must* do the following *after* rebuilding with the
latest CVS sources:

cd $CFEINSTALL
cd lib
llvm-ranlib libiberty.a
llvm-ranlib libstdc++.a
llvm-ranlib libsupc++.a
llvm-ranlib gcc/*/*/libgcc.a
llvm-ranlib gcc/*/*/libgcov.a

This will ensure that the archives built by CFE will have LLVM style
bytecode symbol tables in them.

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041114/8c922a3c/attachment.sig>


More information about the llvm-dev mailing list