[eresi-dev] elfsh change name of lib in dynamic
jv at ens dot fr
julien.vanegue at ens.fr
Tue Nov 13 14:39:27 UTC 2007
Mario
To change the name of a library dependence for a _longer_ name,
you need to create a new section .dynstr.new, copy the content
of .dynstr to .dynstr.new (see "insert" and "write" command) and
then write the new name at the end of the new section. Finally,
you need to change the address of the .dynstr section in the
DT_STRTAB entry of .dynamic to make it point on the new section's
address, and change the dt_val of the corresponding DT_NEEDED
entry to make it point on the new name in the new section.
Of course you can also do a symbolic link ondisk or choose to use
a shorter name, in both case its way easier because you can simply
use ln or follow the example given in "The Cerberus ELF Interface"
article published in Phrack #61.
Have fun
-jfv
(see "write" command
in elfsh)
Mario Fetka a écrit :
> how can i change the name in the dynamic section.
>
> from
> [24] Name of needed library => libpam.so.0 {DT_NEEDED}
> to
> [24] Name of needed library => libpam.so.0.81.2 {DT_NEEDED}
>
> Mario
>
More information about the eresi-dev
mailing list