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

disable overlay warning for specific functions

I have four functions that the linker gives me the warning:

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?UART_RX_ISR_STUB?ISR

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?TIMER0_ISR_STUB?ISR

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?TIMER2_ISR_STUB?ISR

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?ASDC0_ISR_STUB?ISR

These functions are not called within my application project. They *ARE* called from the bootloader project via a function pointer. Both projects are in non-overlapped CODE memory.

So how do I turn off these warnings for these segments/functions only?

I absolutely want the compiler to warn me about all other uncalled segments.

Parents
  • Okay I'm now using the OVERLAY directive for this. Works well, thank you.

    One more question ... say for example I didn't want my project to have a main(). The reason is, the app is launched from my bootloader code which lives at 0000H. My app lives at 0C00H and doesn't need a main().

    Without a main(), the project cannot be compiled because overlaying does not occur and overflow happens.

    Instead of specifying the OVERLAY directive for every single function in my project, can I specify the OVERLAY directive for the entire project?

Reply
  • Okay I'm now using the OVERLAY directive for this. Works well, thank you.

    One more question ... say for example I didn't want my project to have a main(). The reason is, the app is launched from my bootloader code which lives at 0000H. My app lives at 0C00H and doesn't need a main().

    Without a main(), the project cannot be compiled because overlaying does not occur and overflow happens.

    Instead of specifying the OVERLAY directive for every single function in my project, can I specify the OVERLAY directive for the entire project?

Children