[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug binutils/3276] New: Alignment error with static const variable
From: |
Jim Wilson |
Subject: |
Re: [Bug binutils/3276] New: Alignment error with static const variable in inline function |
Date: |
Thu, 28 Sep 2006 14:30:10 -0700 |
On Thu, 2006-09-28 at 07:42 +0000, jespdj at hotmail dot com wrote:
> g++ outputs the correct assembler code, so the error must be in as or ld.
Or, more likely, in the OS. Try running objdump -x on your executable.
If the .rdata section has alignment 2**4, then the linker is OK. It is
your OS (i.e. the loader) that isn't respecting the alignment.
I tried this on an i386-cygwin system, and it looked OK to me. The
rdata section has the right alignment, and the program worked. I didn't
do this with binutils-2.17 though. I used the one I already had.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
- [Bug binutils/3276] New: Alignment error with static const variable in inline function, jespdj at hotmail dot com, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, jespdj at hotmail dot com, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, jespdj at hotmail dot com, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, jespdj at hotmail dot com, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, jespdj at hotmail dot com, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, pinskia at gcc dot gnu dot org, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, wilson at specifix dot com, 2006/09/28
- Re: [Bug binutils/3276] New: Alignment error with static const variable in inline function,
Jim Wilson <=
- [Bug binutils/3276] Alignment error with static const variable in inline function, dannysmith at users dot sourceforge dot net, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, dannysmith at users dot sourceforge dot net, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, dannysmith at users dot sourceforge dot net, 2006/09/28
- [Bug binutils/3276] Alignment error with static const variable in inline function, dannysmith at users dot sourceforge dot net, 2006/09/28