How can I change the filename of a shared library after building a program that depends on it?

后端 未结 4 1549
情书的邮戳
情书的邮戳 2020-12-02 11:35

I have a program that depends on a shared library it expects to find deep inside a directory structure. I\'d like to move that shared library out and into a better place. On

4条回答
  •  温柔的废话
    2020-12-02 12:00

    HT - this might be helpful.

    HT is a file editor/viewer/analyzer for executables. The goal is to combine the low-level functionality of a debugger and the usability of IDEs. We plan to implement all (hex-)editing features and support of the most important file formats.

    I couldn't find something much different from ZorbaTHut's solution, but perhaps it's possible to put a name with different length and still keep the binary valid.

    gelf - this could be useful too.

    GElf is a generic, ELF class-independent API for manipulat- ing ELF object files. GElf provides a single, common inter- face for handling 32-bit and 64-bit ELF format object files.

提交回复
热议问题