ARM Technical Support Knowledge Articles


Applies to: BL51 Code-banking Linker/Locator


Information in this article applies to:


How do I locate one group of segments starting at one address, and another group starting at another address? Basically, I need to leave a hole in my CODE address space.


  1. Create a Linker Command File. In uVision, select Options | BL51 Code-Banking Linker | Files and set the check box for "use external linker command file". Then click the CREATE button to see the format that uVision expects. Don't place your OBJ files in the linker command file, uVision will add them from the Project dialog box.
  2. Add a line like the following to the linker command file:
    .......& /* line continuation character */
    CODE(?PR?myseg1(3000),?PR?myseg2,?PR?myseg3, ?PR?myseg4(8000h), ?PR?myseg5, ?PR?myseg6)

    This places myseg1(), myseg2(), and myseg3() in order starting at 0x3000, and the other named segments in order starting at 0x8000.

Article last edited on: 2005-07-09 12:52:23

Rate this article

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