Messages in this thread | | | Subject | Re: gcc/as question | From | Andreas Schwab <> | Date | 16 Jul 1999 11:12:32 +0200 |
| |
kanoj@google.engr.sgi.com (Kanoj Sarcar) writes:
|> What does it mean to say |> |> .section .mysection, "ax" |> |> 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.
gcc 2.7.2.3 assumed a maximum alignment of 4 bytes and ignores all attempts to specify a bigger alignment. egcs has fixed this bug. If your code fails with egcs then you are making the wrong assumptions. A section always inherits the maximum of all alignments of its containing objects.
-- Andreas Schwab "And now for something schwab@suse.de completely different." SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
- 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/
| |