The SAG tool not support assigned library syntax , but using product general syntax then modify small syntax.
ex: Assigned the libtest.a at 0x20000 at SAG
Attachment:
sag.jpg [ 40.78 KiB | Viewed 13206 times ]
LD file by SAG tool
".text_*libtest.a" . : AT(NDS_SAG_LMA){ KEEP(
*libtest.a(.text .stub .text.* .gnu.linkonce.t.*))
KEEP(*o(.text .stub .text.* .gnu.linkonce.t.*)) KEEP(*libtest.a(.text.*personality*)) KEEP(*o(.text.*personality*)) KEEP(*libtest.a(.gnu.warning)) KEEP(*o(.gnu.warning)) . = ALIGN(4); }
Modify the LD file
".text_*libtest.a" . : AT(NDS_SAG_LMA) { KEEP(
*libtest.a:*.o(.text .stub .text.* .gnu.linkonce.t.*)) KEEP(
*libtest.a:*.o(.text.*personality*)) KEEP(
*libtest.a:*.o(.gnu.warning)) . = ALIGN(4); }