what's the right way to use custom entry point
Florian Weimer
fw@deneb.enyo.de
Sun Nov 6 12:30:00 GMT 2016
* Cong Monkey:
> Tks for your advice:)
>
> Another question:
> What's the easy way to self get (int argc, char** argv) for self entry point!
The easiest way is to link against an existing libc, or at least its
startup code.
> I use a not so elegant way like:
> https://gist.github.com/congzhangzh/5141f1c4de4e7ac85d6f8d6a630207e7
If you want to use libstdc++ and the std namespace, you'll need a
fairly complete libc anyway.
More information about the Gcc-help
mailing list