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

AndeSight v200 mcu的linker script路徑
http://forum.andestech.com/viewtopic.php?f=23&t=108
Page 1 of 1

Author:  cindy [ Thu Jun 23, 2011 8:17 am ]
Post subject:  AndeSight v200 mcu的linker script路徑

Depend on your toolchain selection, see bellow

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


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


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


Once users change Load Address in build setting


Attachment:
p3.jpg
p3.jpg [ 42.94 KiB | Viewed 8071 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 8071 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)

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