This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14813] [3.4/3.5 Regression] The wrong init order
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2004 22:38:03 -0000
- Subject: [Bug target/14813] [3.4/3.5 Regression] The wrong init order
- References: <20040401195835.14813.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at specifixinc dot com 2004-04-21 22:37 -------
Subject: Re: [3.4/3.5 Regression] The wrong init order
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-01 20:05 -------
> The last change to crtend.asm was over a year ago why was this not found way before the release?
This only fails if an application or library uses init_array/fini_array.
GCC still uses ctors/dtors sections instead of the preferred and
standardized init_array/fini_array sections. So the only way that you
can trigger this problem is if someone explicitly uses attribute section
init_array, or if you link with code compiled by another compiler.
I suspect the latter method is how HJ found the problem, e.g. he may
have noticed the problem after trying to link icc compiled code with
gcc compiled code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14813