lkml.org 
[lkml]   [1999]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: gcc/as question
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.058 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site