Ask Your Question

Revision history [back]

It works for me when I Fix the second line of CFLAGS. It compiles but for me I cannot run the extract-handshake because of the line 46 of the bash file as it says there's no such file or directory to write.

ifeq ($(KERNELRELEASE),) KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) CFLAGS ?= -O3 -march=native CFLAGS += -Wall -pedantic -std=gnu11 -static -c

offsets.include: offset-finder ./$^ > [email protected]

offset-finder: offset-finder.c offset-finder.o $(CC) $(CFLAGS) $(CPPFLAGS) -o [email protected] $^

offset-finder.o: offset-finder.c $(MAKE) -C $(KERNELDIR) M=$(PWD) [email protected] objcopy -j '.rodata*' [email protected] [email protected]

clean: rm -f offset-finder offsets.include $(MAKE) -C $(KERNELDIR) M=$(PWD) clean

.PHONY: clean else offset-finder-m := offset-finder.o oldsrc := $(src) src := $(src)/../../../src include $(src)/compat/Kbuild.include include $(src)/crypto/Kbuild.include src := $(oldsrc) endif

click to hide/show revision 2
No.2 Revision

It works for me when I Fix the second line of CFLAGS. It compiles but for me I cannot run the extract-handshake because of the line 46 of the bash file as it says there's no such file or directory to write.

ifeq ($(KERNELRELEASE),)
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CFLAGS ?= -O3 -march=native
CFLAGS += -Wall -pedantic -std=gnu11 -static -c

offsets.include: offset-finder ./$^ > [email protected]

offset-finder: offset-finder.c offset-finder.o $(CC) $(CFLAGS) $(CPPFLAGS) -o [email protected] $^

offset-finder.o: offset-finder.c $(MAKE) -C $(KERNELDIR) M=$(PWD) [email protected] objcopy -j '.rodata*' [email protected] [email protected]

clean: rm -f offset-finder offsets.include $(MAKE) -C $(KERNELDIR) M=$(PWD) clean

.PHONY: clean else offset-finder-m := offset-finder.o oldsrc := $(src) src := $(src)/../../../src include $(src)/compat/Kbuild.include include $(src)/crypto/Kbuild.include src := $(oldsrc) endifendif