[llvm-commits] [patch][gold plugin] Add an extra-library-path option to the plugin

Nick Lewycky nicholas at mxc.ca
Tue Jun 22 22:11:41 PDT 2010


Rafael Espindola wrote:
> Add an extra-library-path option to the plugin. This is used to support
> having a library both as bitcode and native code. We want to use the
> bitcode first, but if codegen produces new undefined references we have to use
> the native code to satisfy those references.
>
> Gold has no notion of bitcode and native search directories, so instead it has
> an API where the plugin can instruct it to look for the libraries it is passing
> to it. This patch uses that API.

I wish it were named 'late-bound native libraries' or last-chance native 
libraries or something. It also seems odd that it only supports one 
library. Anyhow, this patch is implements the feature as exposed by 
gold. Thanks!

Nick




More information about the llvm-commits mailing list