mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
Depending upon the toolchain, empty ELF sections in the object files of a hypervisor module can be emitted with unusual flags such as "Writeable, non-allocatable" which modpost gets grumpy about: | WARNING: modpost: drivers/misc/pkvm-pl011/pkvm_pl011.o (.hyp.rodata): unexpected non-allocatable section. Since these sections are empty, whether or not they are allocatable is not of any concern to the module loader, so adjust the check in modpost to quietly tolerate this insanity. Signed-off-by: Will Deacon <willdeacon@google.com> Bug: 269245057 Change-Id: I6bf0ccdb1c0440b0a117ea0a0949aff47f7ccadb