DescriptionAdd a tool for patching ELF libraries/executables offline
This is for patching ELF objects for use with elf_loader.cc. It
allows system call instructions to be patched before the library or
executable is loaded.
For simplicity, we replace system calls with "int $0", which is not
very fast at run time. A more sophisticated version could insert
jumps like library.cc does, but this would involve adding an extra
code segment to the ELF object.
BUG=http://code.google.com/p/seccompsandbox/issues/detail?id=13
TEST=For example:
./patch_offline /lib/ld-linux.so.2 -o ld.so.patched
objdump -d ld.so.patched | grep -w int
Automated tests will be added in a later change.
Committed: http://code.google.com/p/seccompsandbox/source/detail?r=173
Patch Set 1 #Patch Set 2 : Add to 'clean' target #
Total comments: 1
Messages
Total messages: 2 (0 generated)
|