This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

long_call attribute in C++


  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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]