linux-next: build failure in the last build
Mark Brown
maintainerHi all,
After merging the pagemap-headers tree, today's linux-next build (arm64 allyesconfig) failed like this:
ld: can not size stub section: file truncated$d' referenced in section __patchable_function_entries' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .init_array' of kernel/kheaders.o: defined in discarded section .discard.addressable' of kernel/kheaders.o $d' referenced in section .initcall.modnames' of kernel/kheaders.o: defined in discarded section `.note.gnu.property' of kernel/kheaders.o
Caused by commit
69efc02bccc76 (module: extend module_blacklist parameter to built-in modules)
I have reverted that commit and 1ca4515ee4e01 (module: rename module_blacklist to module_denylist) which collided with it.
Quoted 10 lines · Mark Brown
Hi all,
After merging the pagemap-headers tree, today's linux-next build (arm64 allyesconfig) failed like this:
ld: can not size stub section: file truncated
$d' referenced in section__patchable_function_entries' ofkernel/kheaders.o: defined in discarded section.discard.addressable' of kernel/kheaders.o$d' referenced in section.init_array' of kernel/kheaders.o: defined in discarded section.discard.addressable' ofkernel/kheaders.o$d' referenced in section.initcall.modnames' ofkernel/kheaders.o: defined in discarded section `.note.gnu.property' ofkernel/kheaders.o
Quoted 6 lines
Caused by commit
69efc02bccc76(module: extendmodule_blacklistparameter to built-in modules)I have reverted that commit and
1ca4515ee4e01(module: renamemodule_blacklisttomodule_denylist) which collided with it.
Hi Mark,
Thank you for the report.
At first glance, this appears to be caused by a corrupted/truncated kernel/kheaders.o on the build runner rather than an issue in the patch itself, no? Could you try a clean rebuild of arm64 allyesconfig with the commits re-applied? It should build cleanly.
I will take a detailed look.
Kind regards,
Signature · 1 line
Aaron Tomlin
Mark Brown
maintainerQuoted 7 lines · Aaron Tomlin
Quoted 4 lines · Mark Brown
ld: can not size stub section: file truncated
$d' referenced in section__patchable_function_entries' ofkernel/kheaders.o: defined in discarded section.discard.addressable' of kernel/kheaders.o$d' referenced in section.init_array' of kernel/kheaders.o: defined in discarded section.discard.addressable' ofkernel/kheaders.o$d' referenced in section.initcall.modnames' ofkernel/kheaders.o: defined in discarded section `.note.gnu.property' ofkernel/kheaders.o
Quoted 7 lines
Quoted 2 lines
I have reverted that commit and
1ca4515ee4e01(module: renamemodule_blacklisttomodule_denylist) which collided with it.At first glance, this appears to be caused by a corrupted/truncated
kernel/kheaders.oon the build runner rather than an issue in the patch itself, no? Could you try a clean rebuild of arm64 allyesconfig with the commits re-applied? It should build cleanly.
This was a completely clean build, I only do one of the allyesconfigs a day and the builds are done in tmpfs with the machine powered off between -next runs. My first guess would be that you have overflowed some size limit in something.