Andes Workshop http://forum.andestech.com/ |
|
Andes default start files http://forum.andestech.com/viewtopic.php?f=23&t=788 |
Page 1 of 1 |
Author: | cindy [ Thu Jan 23, 2014 4:06 pm ] |
Post subject: | Andes default start files |
Andes toolchain will link crt0.o in default. We can generate map file to see this feature. As the following picture, please check this box. Attachment: In map.txt, there is crt0.o. Attachment: If we don't need start files. We can use this setting. Check "-nostartfiles". Attachment: Example: nds32le-elf-gcc -Os -nostartfiles -static -T"../nds32.ld" -Wl,--gc-sections -o "demo-int.adx" ./src/crt0.o ./src/init-default.o ./src/init-soc.o ./src/interrupt.o ./src/main.o ./src/uart.o This is the result. No crt0.o Attachment: map4.gif [ 11.07 KiB | Viewed 6370 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/ |