Prev Next | Secure Lazy Binding | Slide #13 |
Lazy binding code:
resolve symbol to correct address
block all signals with sigprocmask()
grab bind spinlock
mprotect() the GOT to read-write
update GOT or PLT entry
mprotect() the GOT read-only again
release bind spinlock
restore signal mask with sigprocmask()
EuroBSDCon 2014 | Copyright © 2014 Philip Guenther |