gcc 链接脚本

GCC的链接器ld允许使用Linker Command Language文件来完全控制链接过程,支持多种对象文件格式,并在遇到错误时尽可能继续执行以提供更详细的诊断信息。通过-T选项可以指定链接脚本,替代默认脚本并定义输出文件的所有细节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

查看ld手册

man ld

DESCRIPTION
       ld combines a number of object and archive files, relocates their data and ties up symbol references. Usually the last step in compiling a program is to run ld.
 
       ld accepts Linker Command Language files written in a superset of AT&T's Link Editor Command Language syntax, to provide explicit and total control over the linking process.
 
       This man page does not describe the command language; see the ld entry in "info" for full details on the command language and on other aspects of the GNU linker.
 
       This version of ld uses the general purpose BFD libraries to operate on object files. This allows ld to read, combine, and write object files in many different formats---for
       example, COFF or "a.out".  Different formats may be linked together to produce an

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值