This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Force symbol inclusion in .a library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]