This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with main routine during linking
- To: martin dot kahlert at infineon dot com
- Subject: Re: Problem with main routine during linking
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Mon, 07 May 2001 21:04:40 +1200
- CC: java at gcc dot gnu dot org
- References: <20010507102448.A3474@keksy.muc.infineon.com>
Martin Kahlert wrote:
> The problem is that gcj puts the main function (i.e. the object containing
> the main routine) after all user command line options in the link step.
> I would propose to put it in front of it as the first object (after crtbegin
> and friends).
> So you can link to libraries containing main function dummies (like g77's libg2c).
>
> Is there any problem with that?
I don't see any problems, if it works for you.
> Unfortunately, i do not know, where this linking actually happens and which
> file i have to look at to change that.
You can start by looking at gcc/java/jvspec.c. It has something to do with lang_specific_extra_outfiles.
Unfortunatly the driver stuff tends to be pretty incomprehensible ;-(
regards
[ bryce ]