This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hot/cold vs glibc


On Mon, Apr 18, 2005 at 09:47:55AM -0700, Caroline Tice wrote:
> Just out of curiousity, could you be more explicit about exactly how 
> having
> an extra .text breaks the mechanism?  That worries me...

asm(".section .init");

void _init() {
  asm("@@@ MARKER @@@);
}

Then sed is used to separate the prologue (crti.o) and epilogue
(crtn.o) into different files.

Yes, it's a hack.  It's not much different from GCC's hack in
crtstuff.c.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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