Hudson River Trading

How Our Engineers Hot-Patched a Third Party Binary Library

Dec 7, 2023ndepalo
How Our Engineers Hot-Patched a Third Party Binary Library
SummaryAI, from the source post

This post details the challenges encountered when attempting to hot-patch a third-party binary library. It covers the intricacies of shared library versioning (soname), the limitations of manual binary editing due to ELF's offset-based referencing and symbol versioning, and the subsequent use and modification of the `patchelf` tool to address ELF segment alignment issues introduced by the tool.