Andes Workshop

It is currently Sun Sep 24, 2017 5:41 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Assigned library file at fix address
PostPosted: Wed Sep 10, 2014 10:52 am 
Offline

Joined: Thu Apr 03, 2014 10:09 am
Posts: 42
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 1853 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 134 times
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 1 guest


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