ARM Technical Support Knowledge Articles

LOCATING MULTIPLE SECTIONS WITHOUT SPECIFYING NAMES

Applies to: L166 Linker/Locator

Answer


Information in this article applies to:


QUESTION

I wish to locate one NCONST section at 8000H and the rest starting at 9000H. How can I achieve this without specifying every single NCONST section name in the SECTIONS directive?

ANSWER

You can use the GROUPS directive to specify the starting address for a particular group. Any sections specified with the SECTIONS directive are exceptions to this. For example:

SECTIONS(?NC?BOOTLOAD%NCONST (0x8000))
GROUPS(NCONST (0x9000))

will locate the section ?NC?BOOTLOAD at 8000H and the rest of the NCONST sections starting at 9000H.

MORE INFORMATION

Article last edited on: 2005-07-15 12:19:29

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