[PATCH] [mc-coff] Forward Linker Option flags into the .drectve section
Anton Korobeynikov
anton at korobeynikov.info
Tue Apr 30 00:40:24 PDT 2013
Hi Reid,
> I was working under the assumption that this pragma would only be used
> for COFF and that the linker would understand /defaultlib, since
> presumably it already has to understand /export to implement
> __declspec(dllexport).
This is wrong assumption. ld also supports .drectve section. However,
it uses "-export" instead of "/export".
Having generic linker option metadata looks nice, however, here it
seems we better need to model depending libs metadata explicitly.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-commits
mailing list