Andes Workshop
http://forum.andestech.com/

get lma information from bin file
http://forum.andestech.com/viewtopic.php?f=25&t=759
Page 1 of 1

Author:  cindy [ Wed Dec 04, 2013 12:29 pm ]
Post subject:  get lma information from bin file

How to get lma information from bin file?

First, create a section to store this lma information.

Code:
.section .load, "a"
.word load_start
.word load_end


Put this section in bin file.
Use the keyword "LOADADDR" to get the lma.

Code:
USER_SECTIONS .load
ROM 0x0
{
  RAM 0x0
    {
      * (.load)
   LOADADDR load_start;
      * (+RO)
   LOADADDR load_end;
      *(+RW, +ZI)
    }
}


Download the complete example:
Attachment:
lma_info.zip [2.38 KiB]
Downloaded 209 times

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/