ARM Technical Support Knowledge Articles

SPECIFYING LOWERCASE SECTION NAMES

Applies to: L166 Linker/Locator

Answer

QUESTION

I am using Keil C166 v3.12 and uVision 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:

SECTIONS(?C_CLRMEMSEC(0x400),?C_INITSEC,?C_LIB_CODE%FCODE(0x10800),?PR?memcpy%FCODE,...

where FCODE is defined earlier thus:

CLASSES(......,FCODE(0x10800-0x7FFFF),....)

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?

ANSWER

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

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

This will solve your problem.

MORE INFORMATION

Article last edited on: 2006-10-23 17:13:57

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential