srg-imperial / SaBRe

Load-time selective binary rewriting
Other
152 stars 16 forks source link

Remove patchelf. Intercept DT_NEEDED through the loader. #60

Closed andronat closed 2 years ago

andronat commented 2 years ago

This method removed external dependencies to patchelf and whole elf file rewriting. One major advantage is that the elf segments are not scumbled. One important limitation for now is that if a dynamic binary doesn't include any DT_NEEDED entries, we can't rewrite it. This might be a solvable problem though.