I would like to modify the linux kernel.
I would like to use functions from a shared library (an .so
file) in file kernel/panic.c
.
Unfortunately I don't know how to compile it.
When I put it in to the Makefile
I receive the following error:
ld: attempted static link of dynamic object
.
Is there a way to put the shared library file to the Linux kernel or do I need to recompile my library to gain an object file.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…