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