Mail Archives: cygwin/1998/09/29/09:30:08
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
- Raw text -