This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
long_call attribute in C++
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Subject: long_call attribute in C++
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Wed, 07 Nov 2001 12:30:26 +0100
- Organization: Telefónica I+D
I have defined a function with the attribute "long_call" in a C++
source code but it doesn't seem to work correctly.
I use arm-elf-gcc 3.0.1
but I get a relocation error... something like:
relocation truncated to fit: R_ARM_PC24 naderia().
the source code is something like:
void __attribute__ ((__section__(".interntext"),long_call))
naderia(void)
{
}
void otra_funcion(int a)
{
...
...
naderia();
...
...
}
Section ".interntext" is more than 24 bits away from ".text"...
Is there a different way to set the attribute "long_call" in C++? (in
C this works correctly)
--
Rafael Rodríguez Velilla rrv@tid.es
Telefónica I+D http://www.tid.es
Telf: +34 - 91 337 4270