[eresi-dev] elfsh change name of lib in dynamic
Mario Fetka
mario.fetka at gmail.com
Tue Nov 13 17:13:46 UTC 2007
thx for the fast answare.
will take a shorter name
libpam.so.1 and create a correct symlink
(pam 0.82 and pam 0.93 are incompatible but have same so name)
Mario
Am Dienstag, 13. November 2007 15:39:27 schrieb jv at ens dot fr:
> 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
>
> _______________________________________________
> eresi-dev mailing list
> eresi-dev at lists.einherjar.de
> http://lists.einherjar.de/mailman/listinfo/eresi-dev
More information about the eresi-dev
mailing list