ARM Technical Support Knowledge Articles

FINDING THE END OF THE BINARY

Applies to: LX51 Linker/Locator

Answer


Information in this article applies to:


SYMPTOM

I need to locate the end of my binary image, to allow me to run a checksum on my program.

CAUSE

Set a given segment as the last, in the link order.

RESOLUTION

The LX51 linker has a feature that allows a given segment to be explicitly placed at the end of a binary image. To use this feature:

  1. Create a .C file (for example, foo.C) with a single line, as follows;
    unsigned char code EOM;
    
  2. Add foo.C to your project.
  3. Under the Project - Options for Target... - LX51 Locate tab, add the following to the User Segments box:
    ?co?*, ?pr?*, ?co?foo(last)
    
  4. EOM is now the last byte in the program binary image.

SEE ALSO

Article last edited on: 2005-07-15 10:02: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