[llvm-commits] [llvm] r63741 - /llvm/trunk/tools/gold/gold-plugin.cpp

Török Edwin edwintorok at gmail.com
Wed Feb 4 10:46:26 PST 2009


On 2009-02-04 19:39, Torok Edwin wrote:
> Author: edwin
> Date: Wed Feb  4 11:39:30 2009
> New Revision: 63741
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63741&view=rev
> Log:
> add support for .a files containing LLVM IR to the gold plugin

This currently doesn't work with .a files containing LLVM IR that are
not linked with -Wl,--whole-archive.
But it works for -Wl,--whole-archive, followed by .a file containing
LLVM IR, and even .a file containing regular ELF objects (like
libc_nonshared.a).

I haven't figured how to make it work with .a files w/o --whole-archive
because that requires an .a symbol table,
but ranlib is unable to emit it (it runs successfully, it justs doesn't
create the symbols).
llvm-ranlib uses an incompatible format. Perhaps it could be taught to
output ar compatible output?

Best regards,
--Edwin



More information about the llvm-commits mailing list