This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2011 Alessandro Ghedini <alessandro@ghedini.me> | |
# Updated 2012 by Mike Perry to extract syscall table addresses | |
# Updated 2014 by Francis Brosnan Blázquez to check for ia32 support | |
obj-m += noptrace2.o | |
KERNEL_VER=$(shell uname -r) | |
SCT := $(shell grep " sys_call_table" /boot/System.map-$(KERNEL_VER) | awk '{ print $$1; }') | |
SCT32 := $(shell grep "ia32_sys_call_table" /boot/System.map-$(KERNEL_VER) | awk '{ print $$1; }') |