[interfacekit] Re: A patch for BString

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

Other related posts: