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]

Function long calls


  I'm using gcc 2.95.2 for ARM.
 I'm trying to compile a program whose functions reside in two different
sections in two different banks of memory so a "bl" can't access the
code of the other section.

  Is there an attribute to tell gcc that a function call must be done
loading the "pc" instead of through a "bl" instruction?
  When I compile my program I always get an error at link time saying
that a relocation symbol R_ARM_PC24 can't be solved.
  I have even tried with a pointer to the function and I get the same
error.

--
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]