Skip to content

Commit

Permalink
fix for regression and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
windreamer committed Jan 7, 2016
1 parent 53c4b30 commit b465820
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from glob import glob
from setuptools import setup, Extension

version = '0.2.1'
version = '0.2.2'

# setuptools DWIM monkey-patch madness: http://dou.bz/37m3XL
if 'setuptools.extension' in sys.modules:
Expand Down
1 change: 0 additions & 1 deletion src/elf_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ void *elf_hook(char const *module_filename, void const *module_address, char con
mprotect((void *)(((size_t)name_address) & (((size_t)-1) ^ (pagesize - 1))), pagesize, PROT_READ | PROT_WRITE); //mark a memory page that contains the relocation as writable
original = (void *)*name_address; //save the original function address
*name_address = (size_t)substitution; //and replace it with the substitutional
mprotect((void *)(((size_t)name_address) & (((size_t)-1) ^ (pagesize - 1))), pagesize, PROT_READ | PROT_EXEC); //mark a memory page that contains the relocation back as executable


break; //the target symbol appears in ".rel.plt" only once
Expand Down

0 comments on commit b465820

Please sign in to comment.