Re: gcc/as question

Richard Henderson (rth@twiddle.net)
Fri, 16 Jul 1999 01:38:56 -0700


On Thu, Jul 15, 1999 at 04:22:24PM -0700, Kanoj Sarcar wrote:
> specifically, what does the "ax" denote (allocate/executable??)

Yes.

> Under gcc 2.7.2.3, mysection gets aligned to 4 bytes, whereas
> on egcs-1.1.2-12, it gets aligned to 16 bytes on an ia32. My
> code needs to know the alignment, so when I assumed 4 byte
> alignment, my code compiled on gcc works, but not on egcs.

You can't query section alignment. I'm somewhat surprised
you care. My guess is that you are disecting assembly files
and re-assembling them somehow?

> I am trying to figure out if my assumption is wrong, or one of
> gcc or egcs is wrong.

Well it isn't the compilers that are wrong. It is clearly
their perogative to align loop labels and such as they desire.

Recall that you can use the -mfunction-alignment and whatnot
command-line options, though I'd recommend not.

r~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/