[hellogcc] Re: ld脚本能否排除某个目录下的文件或者某个文件的section?

  • From: Yao Qi <qiyaoltc@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Tue, 1 Nov 2011 16:42:55 +0800

On Tue, Nov 01, 2011 at 01:26:56PM +0800, xunxun wrote:
> 

> 现在我想问,能否keep时排除一些文件的.eh_frame,或者能否判断当前生成
> dll时才keep,静态库可以去除,不知道在linker脚本中该 如何表达?
> 
 
这个事情应该在makefile里边做。哪些keep,哪些不keep。ld script 是
来控制段之间的关系,位置。不适合去做你要的功能。


-- 
Yao Qi <qiyaoltc AT gmail DOT com>

There is an old time toast which is golden for its beauty.
"When you ascend the hill of prosperity may you not meet a friend."
                -- Mark Twain

Other related posts: