Keil Logo

ARMLINK: WARNING: L6306W: '~PRES8' SECTION SHOULD NOT USE 'REQ8'


Information in this article applies to:

  • RealView Linker Version 3

QUESTION

I have written an interrupt handler in assembly language using the RealView assembler. In this interrupt handler, I am calling another routine that is written in C. When I link my program, I receive the following warning:

Warning: L6306W: '~PRES8' section arm_isr.o(asm_irq) should not
                 use the address of 'REQ8' function (c_func).

What is wrong?

ANSWER

All C code generated by the RealView compiler assumes that stack allocation is aligned on 8-byte boundaries. You must ensure that the assembler interrupt handler has an 8-byte aligned stack by specifying the PRESERVE8 directive at the beginning of your assembly file. For example,

      PRESERVE8
.
.
      AREA irq_asm, CODE, READONLY

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, February 2, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.