V2EX  ›  英汉词典

Patchelf

定义 / Definition

patchelf:一个在 Linux 上用于“修改(patch)ELF 可执行文件或共享库”的命令行工具,常见用途包括更改动态链接器(interpreter)、调整 RPATH/RUNPATH、替换依赖库名称等(主要用于部署与打包场景)。

发音 / Pronunciation (IPA)

/ˈpætʃˌɛlf/

例句 / Examples

I used patchelf to set the RPATH of the binary.
我用 patchelf 来设置这个二进制文件的 RPATH。

After moving the app to a new folder, we ran patchelf to change the dynamic linker path so it could find the correct shared libraries at runtime.
把应用移动到新目录后,我们运行 patchelf 修改动态链接器路径,这样它在运行时就能找到正确的共享库。

词源 / Etymology

patch(修补、打补丁)+ ELF(Executable and Linkable Format,Linux/Unix 常见的可执行文件格式)组合而来;字面意思就是“给 ELF 文件打补丁/做修改”。

相关词 / Related Words

文献与作品 / Notable Works

  • Nixpkgs Manual(Nix/NixOS 官方手册中常在打包与修补二进制的语境出现)
  • Nix Pills(介绍 Nix 打包思路的系列文章中常提到二进制修补与相关工具)
  • ArchWiki(在与动态链接、RPATH 等主题相关的页面与示例中可能出现)
  • Stack Overflow(大量与 “change interpreter / fix rpath / missing shared libraries” 相关的问答会引用 patchelf)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   828 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 23:31 · PVG 07:31 · LAX 15:31 · JFK 18:31
♥ Do have faith in what you're doing.