bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The stack is not correctly dobble word aligned


From: Jens Wallner
Subject: Re: The stack is not correctly dobble word aligned
Date: Fri, 2 Feb 2001 17:10:50 +0100 (MET)

Ulrich Drepper wrote:
> 
> address@hidden (Jens Wallner) writes:
> 
> > In sysdeps/i386/elf/start.S you have implemented a stack alignment
> > but the stack bias is still wrong. Let me explain why:
> 
> You're wrong.  Unless you are doing something stupid yourself the
> stack is perfectly aligned.

O.K. I am trying check out the alignment problem seriously.
I did't make a mistake. On my system (libc.so.6, gcc version 2.95.2.1)
the stack is definitely misaligned. Please have look on the following
URL. There is an other guy who is wondering about the stack alignment
(address & 0x7L => 4):

http://gcc.gnu.org/ml/gcc-prs/2001-q1/msg00365.html

Responsible for the correct stack alignment is the startup code
in crt1.o (sysdeps/i386/elf/start.S) and the compilers's stack 
management. So the problem can also be in the gcc sources too.
To find out where is best place to fix this problem it would be
helpful to check out under which conditions the stack is misaligned:

My up to date system:

libc.so.6, gcc version 2.95.2.1, linux 2.4.0
=> STACK IS MISALINED !!

A very old system:

libc.so.5.4.46, gcc version 2.7.2.1, linux 2.0.35
=> stack is correctly aligned

Please check umteen system konfigurations and it's stack alignment
(double's stack address) and post the results.

-- Jens

------------- mailto:address@hidden -------------
 
| | | | /   Dipl.-Ing. Jens Wallner
| | | | \   Institute of Microelectronic Systems
| | | | /   Appelstr. 4, D - 30 167 Hannover, Germany

-----------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]