Preventing gcc from aligning stack???
Michael Meissner
meissner en cygnus.com
Mie Ene 26 20:41:26 CST 2000
On Wed, Jan 26, 2000 at 02:19:35PM +0100, Jamie Lokier wrote:
> David Weinehall wrote:
> > > > sched.c:77: warning: alignment of `aligned_data' is greater than maximum
> > > > object file alignment
> > >
> > > That's not i386 is it?
> >
> > 486.
It doesn't matter which machine is chosen (the machine type only sets the
default alignments). I believe the original problem is for System V.4 targets
(Linux ELF is a SVR4 target) in 2.7.2.3 did not set MAX_OFILE_ALIGNMENT, which
meant that the compiler assumed that the maximum alignment was 4 or 8 bytes.
Under 2.95 and beyond, the compiler knows you can specify higher alignments.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
Work: meissner en redhat.com phone: 978-486-9304 fax: 978-692-4482
Non-work: meissner en spectacle-pond.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda