[interfacekit] Re: A patch for BString
- From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Sat, 08 Nov 2003 00:06:59 +0100
On 2003-11-07 at 20:58:56 [+0100], Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
wrote:
>
> In fact it should also be possible to patch intra-image invocations, but it
> would be a bit more complicated. Currently it is sufficient to read the
> relocation entries for the GOT from the ELF file corresponding to the image
> to find out where the entries of the symbol in question are located in the
> GOT. To also patch the other symbol occurrences, all relocation sections in
> the file would need to be analyzed and then a way must be found to fix the
> read-only area the objects code was loaded into -- I guess cloning the area
> with write permission would work. Anyway, it's definitely more complicated,
> and for the purpose I originally wrote it (memory allocation tracking) the
> limited implementation was sufficient.
I shouldn't muse about such things after a couple glasses of wine. This part
is of course complete nonsense. As the name suggests, the shared object's
code may be shared by other processes. Manipulating it this way would badly
crash them.
CU, Ingo
- Follow-Ups:
- [interfacekit] Re: A patch for BString
- From: Axel Dörfler
- References:
- [interfacekit] Re: A patch for BString
- From: Axel Dörfler
- [interfacekit] Re: A patch for BString
- From: Ingo Weinhold
Other related posts:
- » [interfacekit] A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- » [interfacekit] Re: A patch for BString
- [interfacekit] Re: A patch for BString
- From: Axel Dörfler
- [interfacekit] Re: A patch for BString
- From: Axel Dörfler
- [interfacekit] Re: A patch for BString
- From: Ingo Weinhold