Force symbol inclusion in .a library

Daniel Jacobowitz drow@false.org
Tue Oct 16 23:08:00 GMT 2007


On Tue, Oct 16, 2007 at 06:13:29PM +0000, Dave W wrote:
> Works in windows because on windows the function is
> declared extern "C" _declspec(dllexport) Glue(void *);
> which forces the linker to include the symbol because it is
> marked for dll exporting.

Your choices are --whole-archive and "-u Glue".  There's no way you
can mark the symbol.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list