patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

[question] How to patch the path of section headers?

Open Freed-Wu opened this issue 2 years ago • 0 comments

If a wrong path exists in section headers of a binary program, how to substitue it with correct path? I try to patchelf --set-interpreter its interpreter then sed the path, however, it breaks the correctness of elf format.

TIA!

Freed-Wu avatar Jun 05 '23 15:06 Freed-Wu