This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I enable 8bit stack alignment?

Note: This was originally posted on 20th April 2011 at http://forums.arm.com

I'm trying to compile a C program with RVDS.
At link time, I get a lot of  "myProgram.o(.text) contains invalid call from '~PRES8' function to 'REQ8' function"


I only found an asembly directive (e.g. PRESERVE8) that solves the issue for the .s files but not for c source files.


Is there any linker option that solves this problem?
Parents
  • Note: This was originally posted on 20th April 2011 at http://forums.arm.com


    Are you calling any library functions or any function which are written in assembly langauge?


    Nope ... all of the functions are written in C.

    What I do is compile a library with RVCT 3.1 and compile the application with RVCT 4.0 (some customer request)
    If I compile everything with 4.0 or 3.1, everything works fine.
Reply
  • Note: This was originally posted on 20th April 2011 at http://forums.arm.com


    Are you calling any library functions or any function which are written in assembly langauge?


    Nope ... all of the functions are written in C.

    What I do is compile a library with RVCT 3.1 and compile the application with RVCT 4.0 (some customer request)
    If I compile everything with 4.0 or 3.1, everything works fine.
Children
No data