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

如何合并两个library
http://forum.andestech.com/viewtopic.php?f=25&t=643
Page 1 of 1

Author:  cindy [ Fri Nov 23, 2012 5:28 pm ]
Post subject:  如何合并两个library

Q:请问如何合并两个library?

A:
please refer to the example: merge 111.a to 222.a

1. open console:
window:开始-》程序-》Andestech-》toolchains-》选择一款toolchain
linux:打开一个terminal

2. 用ar工具将111.a中的文件抽取出来
# nds32le-elf-ar -x 111.a /// 会生成很多*.o文件

3. 用ar工具将抽取的.o文件加入到111.a库中
# nds32le-elf-ar -r 222.a *.o

4. 检查合并是否成功
# nds32le-elf-objdump -d 222.a /// 检查有没有包含111.a库中的函数

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