This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __main
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Mike Laman <mlaman at cox dot net>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Mon, 2 Sep 2002 19:37:22 -0700
- Subject: Re: __main
- References: <002f01c24f89$6ad6efa0$0a00000a@zarquin> <20020830044008.A479336@murlibobo.cs.mu.OZ.AU> <001e01c24fe4$f4b6e580$5aa80844@fed1.sdca.home.com>
On Thu, Aug 29, 2002 at 10:20:29PM -0700, Mike Laman wrote:
> When running a C cross compiler where one does not want a call
> to "__main()" to be emitted, how can one turn it off?
You need to get HAS_INIT_SECTION defined. The appropriate way to
do that is to use ELF for your object format, and write your target
configuration headers accordingly.
zw