Andes Workshop

It is currently Fri Mar 29, 2024 6:45 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 如何合并两个library
PostPosted: Fri Nov 23, 2012 5:28 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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库中的函数


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