Andes Workshop
http://forum.andestech.com/

Assigned library file at fix address
http://forum.andestech.com/viewtopic.php?f=16&t=887
Page 1 of 1

Author:  jerry [ Wed Sep 10, 2014 10:52 am ]
Post subject:  Assigned library file at fix address

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
sag.jpg [ 40.78 KiB | Viewed 5451 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); }

Attachments:
sample.zip [179.77 KiB]
Downloaded 394 times

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/