Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elfcopy: Add --redefine-syms <file> arguments #508

Merged
merged 1 commit into from
Feb 14, 2023

Commits on Feb 13, 2023

  1. elfcopy: Add --redefine-syms <file> arguments

    This commit makes elfcopy the only tool I'm aware of that will let you
    rename symbols in dynamic libraries. Other tools like objcopy will only
    perform renaming on the symbol table, but will not rename dynamic
    strings or recalculate the hashes/offsets that change as a result.
    
    This works by creating a redefinition table, and handing symbol (dynamic
    and otherwise) to the table's get_redefined_name function before adding
    that string to the out_* variables. The elf binary is then regenerated
    from the output data (containing the renamed strings) and a valid DSO is
    generated.
    amshafer committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    dbf197d View commit details
    Browse the repository at this point in the history