This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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