Makefile uses bin directory

This commit is contained in:
Atoumia 2022-06-19 18:25:33 +01:00
parent 6040e1e050
commit b8f3e6ff8d
No known key found for this signature in database
GPG Key ID: B46B78571D0B3E35
21 changed files with 18 additions and 83 deletions

View File

@ -1 +1 @@
cmd_/home/elimin8/Work/Repos/ARCB/ARCB.ko := ld -r -m elf_x86_64 --build-id=sha1 -T scripts/module.lds -o /home/elimin8/Work/Repos/ARCB/ARCB.ko /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o /home/elimin8/Work/Repos/ARCB/ARCB.mod.o; true cmd_/home/atoumia/Repos/ARCB/ARCB.ko := ld -r -m elf_x86_64 --build-id=sha1 -T scripts/module.lds -o /home/atoumia/Repos/ARCB/ARCB.ko /home/atoumia/Repos/ARCB/ARCB.prelink.o /home/atoumia/Repos/ARCB/ARCB.mod.o; true

View File

@ -1 +1 @@
cmd_/home/elimin8/Work/Repos/ARCB/ARCB.mod := { echo /home/elimin8/Work/Repos/ARCB/ARCB.o; echo; } > /home/elimin8/Work/Repos/ARCB/ARCB.mod cmd_/home/atoumia/Repos/ARCB/ARCB.mod := { echo /home/atoumia/Repos/ARCB/ARCB.o; echo; } > /home/atoumia/Repos/ARCB/ARCB.mod

View File

@ -1,8 +1,8 @@
cmd_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := gcc -Wp,-MMD,/home/elimin8/Work/Repos/ARCB/.ARCB.mod.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB.mod"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/elimin8/Work/Repos/ARCB/ARCB.mod.o /home/elimin8/Work/Repos/ARCB/ARCB.mod.c cmd_/home/atoumia/Repos/ARCB/ARCB.mod.o := gcc -Wp,-MMD,/home/atoumia/Repos/ARCB/.ARCB.mod.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB.mod"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/atoumia/Repos/ARCB/ARCB.mod.o /home/atoumia/Repos/ARCB/ARCB.mod.c
source_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := /home/elimin8/Work/Repos/ARCB/ARCB.mod.c source_/home/atoumia/Repos/ARCB/ARCB.mod.o := /home/atoumia/Repos/ARCB/ARCB.mod.c
deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := \ deps_/home/atoumia/Repos/ARCB/ARCB.mod.o := \
$(wildcard include/config/MODULE_UNLOAD) \ $(wildcard include/config/MODULE_UNLOAD) \
$(wildcard include/config/RETPOLINE) \ $(wildcard include/config/RETPOLINE) \
include/linux/compiler-version.h \ include/linux/compiler-version.h \
@ -707,6 +707,6 @@ deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o := \
$(wildcard include/config/MGEODEGX1) \ $(wildcard include/config/MGEODEGX1) \
$(wildcard include/config/MGEODE_LX) \ $(wildcard include/config/MGEODE_LX) \
/home/elimin8/Work/Repos/ARCB/ARCB.mod.o: $(deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o) /home/atoumia/Repos/ARCB/ARCB.mod.o: $(deps_/home/atoumia/Repos/ARCB/ARCB.mod.o)
$(deps_/home/elimin8/Work/Repos/ARCB/ARCB.mod.o): $(deps_/home/atoumia/Repos/ARCB/ARCB.mod.o):

View File

@ -1,8 +1,8 @@
cmd_/home/elimin8/Work/Repos/ARCB/ARCB.o := gcc -Wp,-MMD,/home/elimin8/Work/Repos/ARCB/.ARCB.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/elimin8/Work/Repos/ARCB/ARCB.o /home/elimin8/Work/Repos/ARCB/ARCB.c cmd_/home/atoumia/Repos/ARCB/ARCB.o := gcc -Wp,-MMD,/home/atoumia/Repos/ARCB/.ARCB.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -DMODULE -DKBUILD_BASENAME='"ARCB"' -DKBUILD_MODNAME='"ARCB"' -D__KBUILD_MODNAME=kmod_ARCB -c -o /home/atoumia/Repos/ARCB/ARCB.o /home/atoumia/Repos/ARCB/ARCB.c
source_/home/elimin8/Work/Repos/ARCB/ARCB.o := /home/elimin8/Work/Repos/ARCB/ARCB.c source_/home/atoumia/Repos/ARCB/ARCB.o := /home/atoumia/Repos/ARCB/ARCB.c
deps_/home/elimin8/Work/Repos/ARCB/ARCB.o := \ deps_/home/atoumia/Repos/ARCB/ARCB.o := \
include/linux/compiler-version.h \ include/linux/compiler-version.h \
$(wildcard include/config/CC_VERSION_TEXT) \ $(wildcard include/config/CC_VERSION_TEXT) \
include/linux/kconfig.h \ include/linux/kconfig.h \
@ -674,6 +674,6 @@ deps_/home/elimin8/Work/Repos/ARCB/ARCB.o := \
$(wildcard include/config/MODULES_USE_ELF_RELA) \ $(wildcard include/config/MODULES_USE_ELF_RELA) \
arch/x86/include/asm/orc_types.h \ arch/x86/include/asm/orc_types.h \
/home/elimin8/Work/Repos/ARCB/ARCB.o: $(deps_/home/elimin8/Work/Repos/ARCB/ARCB.o) /home/atoumia/Repos/ARCB/ARCB.o: $(deps_/home/atoumia/Repos/ARCB/ARCB.o)
$(deps_/home/elimin8/Work/Repos/ARCB/ARCB.o): $(deps_/home/atoumia/Repos/ARCB/ARCB.o):

View File

@ -1 +1 @@
cmd_/home/elimin8/Work/Repos/ARCB/ARCB.prelink.o := ld -m elf_x86_64 -r -o /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o --whole-archive /home/elimin8/Work/Repos/ARCB/ARCB.o ; ./tools/objtool/objtool orc generate --module --lto --ibt --no-fp --retpoline --uaccess --sls /home/elimin8/Work/Repos/ARCB/ARCB.prelink.o cmd_/home/atoumia/Repos/ARCB/ARCB.prelink.o := ld -m elf_x86_64 -r -o /home/atoumia/Repos/ARCB/ARCB.prelink.o --whole-archive /home/atoumia/Repos/ARCB/ARCB.o ; ./tools/objtool/objtool orc generate --module --lto --ibt --no-fp --retpoline --uaccess --sls /home/atoumia/Repos/ARCB/ARCB.prelink.o

View File

@ -1 +1 @@
cmd_/home/elimin8/Work/Repos/ARCB/Module.symvers := sed 's/\.ko$$/.prelink\.o/' /home/elimin8/Work/Repos/ARCB/modules.order | scripts/mod/modpost -a -o /home/elimin8/Work/Repos/ARCB/Module.symvers -e -i Module.symvers -N -T - cmd_/home/atoumia/Repos/ARCB/Module.symvers := sed 's/\.ko$$/.prelink\.o/' /home/atoumia/Repos/ARCB/modules.order | scripts/mod/modpost -a -o /home/atoumia/Repos/ARCB/Module.symvers -e -i Module.symvers -N -T -

View File

@ -1 +1 @@
cmd_/home/elimin8/Work/Repos/ARCB/modules.order := { echo /home/elimin8/Work/Repos/ARCB/ARCB.ko; :; } | awk '!x[$$0]++' - > /home/elimin8/Work/Repos/ARCB/modules.order cmd_/home/atoumia/Repos/ARCB/modules.order := { echo /home/atoumia/Repos/ARCB/ARCB.ko; :; } | awk '!x[$$0]++' - > /home/atoumia/Repos/ARCB/modules.order

View File

@ -1,2 +0,0 @@
/home/elimin8/Work/Repos/ARCB/ARCB.o

View File

@ -1,31 +0,0 @@
#include <linux/module.h>
#define INCLUDE_VERMAGIC
#include <linux/build-salt.h>
#include <linux/elfnote-lto.h>
#include <linux/vermagic.h>
#include <linux/compiler.h>
BUILD_SALT;
BUILD_LTO_INFO;
MODULE_INFO(vermagic, VERMAGIC_STRING);
MODULE_INFO(name, KBUILD_MODNAME);
__visible struct module __this_module
__section(".gnu.linkonce.this_module") = {
.name = KBUILD_MODNAME,
.init = init_module,
#ifdef CONFIG_MODULE_UNLOAD
.exit = cleanup_module,
#endif
.arch = MODULE_ARCH_INIT,
};
#ifdef CONFIG_RETPOLINE
MODULE_INFO(retpoline, "Y");
#endif
MODULE_INFO(depends, "");
MODULE_INFO(srcversion, "FB11FBFF1A01E059FE76C13");

Binary file not shown.

BIN
ARCB.o

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,9 @@ obj-m += ARCB.o
all: all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
rm -f *.o *.mod* *.order *.symvers
mv ARCB.ko bin
clean: clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
rm -rf *.o *.mod* *.ko rm -f *.o *.mod* *.ko

View File

Binary file not shown.

BIN
king.ko

Binary file not shown.

View File

@ -1,2 +0,0 @@
/home/x00010/Work/Repos/EmperorClientKing/king.o

View File

@ -1,31 +0,0 @@
#include <linux/module.h>
#define INCLUDE_VERMAGIC
#include <linux/build-salt.h>
#include <linux/elfnote-lto.h>
#include <linux/vermagic.h>
#include <linux/compiler.h>
BUILD_SALT;
BUILD_LTO_INFO;
MODULE_INFO(vermagic, VERMAGIC_STRING);
MODULE_INFO(name, KBUILD_MODNAME);
__visible struct module __this_module
__section(".gnu.linkonce.this_module") = {
.name = KBUILD_MODNAME,
.init = init_module,
#ifdef CONFIG_MODULE_UNLOAD
.exit = cleanup_module,
#endif
.arch = MODULE_ARCH_INIT,
};
#ifdef CONFIG_RETPOLINE
MODULE_INFO(retpoline, "Y");
#endif
MODULE_INFO(depends, "");
MODULE_INFO(srcversion, "FB11FBFF1A01E059FE76C13");

Binary file not shown.

BIN
king.o

Binary file not shown.

View File

@ -1 +0,0 @@
/home/elimin8/Work/Repos/ARCB/ARCB.ko