Andes Workshop

It is currently Fri Mar 29, 2024 1:43 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: AndeSight v200 mcu的linker script路徑
PostPosted: Thu Jun 23, 2011 8:17 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Depend on your toolchain selection, see bellow

Attachment:
p1.jpg
p1.jpg [ 47.22 KiB | Viewed 8063 times ]


The default linker script is in [YOUR_TOOLCHAIN_SELECTION]/nds32le-elf/lib/ldscripts


Attachment:
p2.jpg
p2.jpg [ 49.47 KiB | Viewed 8063 times ]


Once users change Load Address in build setting


Attachment:
p3.jpg
p3.jpg [ 42.94 KiB | Viewed 8063 times ]


A copy of the ld file would be in [YOUR_PROJECT]/output/.nds32le-elf-newlib-v2_start0x504000.x
這是一個隱藏檔

Attachment:
p4.jpg
p4.jpg [ 28.49 KiB | Viewed 8063 times ]


And linker option would add –Xlinker option

For ex $(CROSS_COMPILE)gcc -static -T"output/.nds32le-elf-newlib-v2_start0x504000.x" -Xlinker -defsym -Xlinker _stack=0x4000000 -o"C.adx" $(OBJS) $(USER_OBJS) $(LIBS)


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 16 guests


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