> Tauno Voipio <tauno.voipio.RemoveThis@INVALIDiki.fi> writes:
>
>> Joris Dolderer wrote:
>>> Is there any smarter linker for Linux (if possible open source)
>>
>> It is NOT a linker question alone: the linker cannot split
>> parts of single object files out.
>
> The GNU linker can't. Some other linkers can. I'm afraid I can't
> name one for Linux though.
Wrong. See --gc-sections in the ld manual (and
-ffunction-sections/-fdata-sections in the gcc manual).
-- Sergei.
Do not link unused functions
最新推荐文章于 2024-01-20 06:00:00 发布
本文讨论了Linux平台下是否有一种更智能的链接器能够实现从单一目标文件中拆分部分代码段的功能。提及了GNU链接器的局限性,并指出了通过使用特定选项如--gc-sections、-ffunction-sections和-fdata-sections可以实现部分代码段的拆分。
1万+

被折叠的 条评论
为什么被折叠?



