Andes Workshop

It is currently Fri Mar 29, 2024 6:35 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: sag to assign .o file in folder
PostPosted: Fri Jun 13, 2014 12:22 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
The syntax to use sag to assign .o file inside a folder
./src/program1.o (+RW, +ZI)

Code:
LOAD_ROM_1 0x0000
{
   EXEC_ROM_1 0x0000
   {
      ./src/program1.o SORT (+RO)    
   }
   DRAM 0x10000 0x8000 {
      ./src/program1.o (+RW, +ZI)
   }
}
LOAD_ROM_2 +0x1000
{
   EXEC_ROM_2 +0x0
   {
      *(.text)
      *(+RO)
   }
      SRAM 0x18000 0x8000
      {
      * (+RW, +ZI)
      }
}


Attachment:
demo-int.zip [139.16 KiB]
Downloaded 766 times


Code:
Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text_.srcprogram1.o 00000030  00000000  00000000  00001000  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .text         000015cc  00001030  00001030  00002030  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .nds32_init   000003c0  000025fc  000025fc  000035fc  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  3 .ex9.itable   00000004  000029bc  000029bc  000039bc  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .rodata       000002d0  000029c0  000029c0  000039c0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .sdata_w      00000004  00018000  00002c90  00004000  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  6 .sbss_w       00000024  00018004  00002c94  00004004  2**2
                  ALLOC
  7 .bss          00000010  00018028  00002cb8  00004004  2**3
                  ALLOC


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 9 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