Andes Workshop

It is currently Fri Mar 29, 2024 7:19 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: get lma information from bin file
PostPosted: Wed Dec 04, 2013 12:29 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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 656 times


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group