Closed DillionApple closed 3 years ago
Yes, it's necessary though it's possible your module might work without it. Extracting vmlinux from vmlinuz won't work, you'll need the original unstripped vmlinux (e.g. from a kernel-debuginfo RPM).
@jpoimboe Thanks a lot.
I'm building a patch for my oot module:
But I get the error:
I checked the source code and seems
readelf
needs to parse$VMLINUX
(path tovmlinux
file) for some data.The
vmlinux
file I extracted from/boot/vmlinuz-$(uname -r)
seems not meeting the requirements, raising error:These two errors are raised from function
find_special_section_data
inkpatch-build
. I commented this function, and the patch is built successfully.So, is
find_special_section_data
necessary for building oot-module patches?