This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: i386pe.x: etext and end?
- To: gnu-win32 at cygnus dot com
- Subject: Re: i386pe.x: etext and end?
- From: DJ Delorie <dj at delorie dot com>
- Date: Tue, 29 Sep 1998 09:30:08 -0400
- Newsgroups: cygnus.gnu-win32
- Organization: delorie software
- References: <13839.16480.757084.83000.cygnus.gnu-win32@hawaii>
- Stamped: newsgate-cygnus
end and etext are "special" so they don't have underscores
to make sure they don't interfere with functions or variables
your program may provide (ansi/posix compliance and all that).
However, you can access them using gcc extensions:
extern int end asm("end");
void *foo()
{
return (void *)&end;
}
However, since they're deprecated, there is *no* sanctioned
way of getting at them. You shouldn't be using them at all
unless you absolutely can't avoid it.
DJ
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".