ARM Technical Support Knowledge Articles

ABSOLUTE FUNCTION ADDRESS

Applies to: L166 Linker/Locator

Answer


Information in this article applies to:


QUESTION

How can I locate a C function at an absolute address using C166/L166?

ANSWER

You may not locate an indivitual function, but all functions of a module to a fixed address using the L166 directive SECTIONS to specify an address for your function. For example, to locate the section ?PR?ABC in class NCODE at address 0x12000, you would use the following command line syntax:

L166 abc.obj SECTIONS( ?PR?ABC%NCODE ( 0x12000 ) )

Note that the section name is combosed of the module name and the memory model as explained under Sections, Classes, and Groups in the C166 User's Guide.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-09-30 09:11:32

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