Keil Logo

L166: Specifying Lowercase Section Names


I am using Keil C166 v3.12 and µVision 1.32 with RTX-166 3.10a on an 80C167 target.

I am trying to relocate section ?PR?memcpy from the C167L.LIB library file to a specified location in memory. I am using the following construct in my linker include file:


where FCODE is defined earlier thus:


Other sections (for example all the RTX-166 sections) relocate with no problems. However, on trying to link, L166 warns that it is unable to find ?PR?MEMCPY (note this is converted to UPPER CASE) and locates ?PR?memcpy elsewhere.

I suspect that L166 converts all input read in from the include file to uppercase, which means that it looks for ?PR?MEMCPY instead of ?PR?memcpy. Is there a fix for this problem?


Yes. Just type the section name enclosed with quotes. For example:

SECTIONS(... "?PR?memcpy"%FCODE,...

This will solve your problem.


Last Reviewed: Thursday, February 25, 2021

Did this article provide the answer you needed?
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.