[LLVMdev] Question on link error

Anton Korobeynikov asl at math.spbu.ru
Fri Feb 15 03:52:02 PST 2008


Hello, Ted

> __main is supposed to be inside hello.bc, so why can’t lli find it?
No, it shouldn't be there. On targets, which lacks init sections (for
example, all win-based, like mingw & cygwin) __main is used to call
static constructors and relevant stuff.

The call to __main is assembled early in the main routine before the
actual code will be executed. I'll try to look into this problem today.

--
WBR, Anton Korobeynikov 



More information about the llvm-dev mailing list