This is a example:
Attachment:
3.png [ 34.75 KiB | Viewed 11559 times ]
The bin file is from 0x0~0x30004, size is 0x30004 bytes. (196612 bytes)
Attachment:
2.png [ 46.21 KiB | Viewed 11560 times ]
Sample code:
Attachment:
cut-section-original.zip [22.35 KiB]
Downloaded 743 times
----------------------------------------------------------------
Remove the last section .section2 from bin file.
The new bin file is from 0x0~0x2004, size is 0x2004 bytes. (8196 bytes)
Command:
nds32le-elf-objcopy -S -O binary
-R .section2 "cut-section-remove.adx" output/cut-section-remove.bin
AndeSight setting:
Attachment:
6.png [ 70.22 KiB | Viewed 11559 times ]
Attachment:
5.png [ 33.52 KiB | Viewed 11559 times ]
Attachment:
4.png [ 31.76 KiB | Viewed 11559 times ]
Sample:
Attachment:
cut-section-remove.zip [22.18 KiB]
Downloaded 665 times