smlinux/base/kernel-source
2023-04-15 12:43:42 +05:30
..
kernel-source.SMBuild Restored file permissions that were accidentally removed in previous commit 2023-04-15 12:43:42 +05:30
README Initial commit 2022-01-28 23:06:05 +05:30

!!!! THIS SOURCE IS NOT FOR THE RASPBERRY PI KERNEL !!!!

The kernel configuration file .config was taken from slackware-current
meant for use in 'huge' kernel 5.4.41 as slackware devs term it.

I've disabled the ORC unwinder and am instead using frame pointer in the below
location using <make menuconfig> and the kernel builds fine.

Kernel hacking -> Choose kernel unwinder

The kernel build generates errors like these if ORC unwinder is chosen and
ultimately fails:

...
arch/x86/kernel/e820.o: warning: objtool: elf_update: cannot write data to file
kernel/sched/rt.o: warning: objtool: elf_update: cannot write data to file
kernel/trace/trace_seq.o: warning: objtool: elf_update: cannot write data to file
kernel/kallsyms.o: warning: objtool: elf_update: cannot write data to file

...
ar: warning: arch/x86/kernel/irq_64.o has a corrupt section with a size (<randome address>) larger than the file size
ar: warning: arch/x86/kernel/dumpstack_64.o has a corrupt section with a size (<randome address>) larger than the file size
ar: warning: arch/x86/kernel/time.o has a corrupt section with a size (<randome address>) larger than the file size
ar: built-in.o: invalid operation