i386pe.x: etext and end?

Sigbjorn Finne sof@dcs.gla.ac.uk
Mon Sep 28 07:02:00 GMT 1998


apologies if this has been discussed before on the list, but
the definition of etext and end is a little bit odd in i386pe.x.
To quote from the version supplied with binutils-980830:

  .text  __image_base__ + __section_alignment__  : 
   etext = .;
  .endjunk BLOCK(__section_alignment__) :
    /* end is deprecated, don't use it */
     end = .;
     __end__ = .;
Is the omission of a prefix of (at least) one underscore to these two
symbols (end and etext) intentional? (Why not use "PROVIDE(_etext
=.);" to achieve the same effect instead?)

I guess what I'm really asking is what's the sanctioned way of getting
at these two syms from within straight C here, rely on asm labels or

For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

More information about the Cygwin mailing list