This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: what's the right way to use custom entry point
- From: Cong Monkey <congzhangzh at gmail dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 6 Nov 2016 20:43:54 +0800
- Subject: Re: what's the right way to use custom entry point
- Authentication-results: sourceware.org; auth=none
- References: <CAOXDmPrEA1hEaP35Cu29LtzVHMPqBqveGj8E5cowZgngqBWxSA@mail.gmail.com> <8737jk42d8.fsf@mid.deneb.enyo.de> <CAOXDmPpeFqwV6UJTgsV2bJU3RW50aWdvJZo7H0v7PCh5Q1tEUQ@mail.gmail.com> <87shr4lriq.fsf@mid.deneb.enyo.de>
> The easiest way is to link against an existing libc, or at least its
> startup code.
If I use custom entry point, the argc and argv I get is very strange,
it's not the same as I get from normally main entry point!