This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386pe.x: etext and end?


On 29-Sep-1998, DJ Delorie <dj@delorie.com> wrote:
> 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.

Sure, "end" and "etext" are deprecated -- I assume this is
because it could cause name clashes on systems which don't
prefix ordinary C symbols with underscores.

But what about "__end__" and "__etext__"?
They're not deprecated, are they?

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]