[Jun23 14:33] module NIGGER_KILLER: Only one .gnu.linkonce.this_module section must exist.
[Jun23 14:34] module NIGGER_KILLER: Only one .gnu.linkonce.this_module section must exist.
[Jun23 14:37] module (missing .modinfo section or name field): Only one .gnu.linkonce.this_module section must exist.
[Jun23 14:40] module mod_test: Only one .gnu.linkonce.this_module section must exist.
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/printk.h>
#include <linux/init.h>
int mod_init(void);
void mod_exit(void);
void * pool_ptr;
int mod_init(void){
pr_info("modtest IS IN!\n");
pool_ptr = kzalloc(4096,0);
if (!pool_ptr) { pr_info("failed on the allocation!\n");}
else { pr_info("allocation was successful!\n");}
return 0;
}
void mod_exit(void){
kvfree(pool_ptr);
pr_info("modtest EXITING...\n");
}
module_init(mod_init);
module_exit(mod_exit); //wait how in the fuck?
MODULE_LICENSE("Proprietary");
MODULE_INFO(name,"mod_test");
what the fuck? i have tried taking the name off, adding other info, nothing works