This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Dec 2010 18:08:34 +0000
- Subject: [Bug target/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them
- Auto-submitted: auto-generated
- References: <bug-46770-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770
--- Comment #48 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-12-13 18:08:00 UTC ---
On Sat, 11 Dec 2010, hjl.tools at gmail dot com wrote:
> We introduced .init_array into gABI 10 years ago so that we can avoid
> those crazy things in crt*.o. It is the time now to switch for Linux/x86/
I see no reason it could make sense for this to be specific to x86. GCC
should be consistent between different targets where possible. As a gABI
feature, this indicates enabling it for all ELF targets rather than just
for x86 GNU/Linux - and maybe disabling for specific target OSes if there
prove to be problems for those specific ELF targets.