[Bug target/14813] [3.4/3.5 Regression] The wrong init order
wilson at specifixinc dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 21 23:19:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list