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

L11 warning

Hi. I use OVERLAY(PRINTF ! *) on my linker command line to prevent an L15. Now the L15 only exists in the following condition:

#define A 1
#define B 1

If only 1 are active no problem. The proble comes in the scenario where:

//#define A 1
//#define B 1

which is possible if I don't need features A and B. How can I only do the OVERLAY(PRINTF ! *) based on features selected in a header file. Is that possible?

Thanks.

Parents
  • I don't disagree that the warning is appropriate; however, I like to write error/warning free code (lint free too for that matter). So how can one cope with this issue other than changing the command line options to the linker manually? For example, is there a way to mark sections of code (read in this case where ever the printf library may be used) as NONOVERLAYABLE and therefore be able to remove the linker command line option yet still not produce a L15 multiple call to segment?

    -Rich

Reply
  • I don't disagree that the warning is appropriate; however, I like to write error/warning free code (lint free too for that matter). So how can one cope with this issue other than changing the command line options to the linker manually? For example, is there a way to mark sections of code (read in this case where ever the printf library may be used) as NONOVERLAYABLE and therefore be able to remove the linker command line option yet still not produce a L15 multiple call to segment?

    -Rich

Children
No data