mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
ld: add Chinese translation (#20498)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# ld
|
||||
|
||||
> 将目标文件链接在一起。
|
||||
> 更多信息:<https://sourceware.org/binutils/docs/ld.html>。
|
||||
|
||||
- 将一个没有依赖项的特定目标文件链接到可执行文件中:
|
||||
|
||||
`ld {{路径/到/文件.o}} {{[-o|--output]}} {{路径/到/输出_可执行文件}}`
|
||||
|
||||
- 将两个目标文件链接在一起:
|
||||
|
||||
`ld {{路径/到/文件1.o}} {{路径/到/文件2.o}} {{[-o|--output]}} {{路径/到/输出_可执行文件}}`
|
||||
|
||||
- 将一个 x86_64 程序动态链接到 glibc (文件路径根据系统而变化):
|
||||
|
||||
`ld {{[-o|--output]}} {{路径/到/输出_可执行文件}} {{[-I|--dynamic-linker]}} /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc {{路径/到/文件.o}} /lib/crtn.o`
|
||||
Reference in New Issue
Block a user