This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ARM/THUMB long calls stubs
- From: Sami Kantoluoto <sami dot kantoluoto at embedtronics dot fi>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Andy Green <andy dot green at oxsemi dot com>, Richard Earnshaw <rearnsha at arm dot com>, gcc-bugs at gcc dot gnu dot org
- Date: Fri, 6 Aug 2004 13:53:20 +0300
- Subject: Re: ARM/THUMB long calls stubs
- References: <4109202A.6000201@redhat.com> <20040729135829.GA24137@embedtronics.fi> <41091EA7.4070108@redhat.com> <20040729161335.GA24489@embedtronics.fi> <20040729171840.GB24489@embedtronics.fi> <410A38D4.606@redhat.com> <20040805151311.GA5218@embedtronics.fi> <41133686.2040202@redhat.com> <20040806081730.GA7729@embedtronics.fi> <41135C80.70201@redhat.com>
Hi Nick,
On Fri, Aug 06, 2004 at 11:25:04AM +0100, Nick Clifton wrote:
> The way to avoid this "feature" (I hesitate to call it a bug) is to
> compile your code with the "-ffunction-sections" switch added to the GCC
> command line. This tells GCC to place each function into its own
> separate section, and GCC is smart enough to know that different
> sections may not end up close to each other, so it cannot optimise away
> the use of the long call.
This helped, thanks! (But I still think that __attribute__ ((section(x)))
should be enough ;-)
-sk