dirtycow / dirtycow.github.io

Dirty COW
https://dirtycow.ninja
3.35k stars 940 forks source link

Use GCC's -pthread option instead of -lpthread. #13

Closed jovanbulck closed 8 years ago

jovanbulck commented 8 years ago

Compiling the exploit on Ubuntu GNU/Linux 16.04 yields undefined references. This is fixed by passing the -pthread option, instead of -lpthread.

See also http://stackoverflow.com/questions/23250863/difference-between-pthread-and-lpthread-while-compiling

aalexgabi commented 8 years ago

@dirtycow Can you merge or this may not be a generic fix?