Files
linux/scripts/mod
Will Deacon 88c2c38f77 ANDROID: modpost: Don't complain about empty non-allocatable ELF sections
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
2023-02-23 10:36:55 +00:00
..
2005-04-16 15:20:36 -07:00
2021-01-14 08:21:09 -08:00