This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Support for init_priority in ARM EABI configurations
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Paul Brook <paul at codesourcery dot com>, Richard Earnshaw <rearnsha at arm dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 11 Oct 2005 22:22:02 -0700
- Subject: Support for init_priority in ARM EABI configurations
Paul, Richard --
The csl-arm-branch (and, probably, mainline) claim not to support the
init_priority attribute for AAPCS targets. (I can't remember who did
that; quite possibly me!)
One of our customers has suggested that this is a mistake, and I tend to
agree. I think the reason this isn't supported is that it's not
portable, in the sense that EABI-compliant linkers need not support
initialization priorities, and will probably (silently!) fail to run the
prioritized code. However, on a fully-GNU system, it seems like a
needless restriction. Therefore, I think we should allow the use of the
attribute. Thoughts?
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304