]> git.baikalelectronics.ru Git - kernel.git/commit
s390: make chkbss work with clang
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Apr 2019 21:26:24 +0000 (23:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 Apr 2019 11:36:52 +0000 (13:36 +0200)
commit0ff81495c14539f375cb824815d676a76c888212
treea33ac528857d40e24ba64ff9a2cd10f591373393
parent049a5c771a7d1af1124c374142d60dff6d84ca5e
s390: make chkbss work with clang

llvm skips an empty .bss section entirely, which makes
the check fail with an unexpected error:

/tmp/binutils-multi-test/bin/s390x-linux-gnu-objdump: section '.bss' mentioned in a -j option, but not found in any input file
error: arch/s390/boot/compressed/decompressor.o .bss section is not empty
../arch/s390/scripts/Makefile.chkbss:20: recipe for target 'arch/s390/boot/compressed/decompressor.o.chkbss' failed

Change the check so we first see if a .bss section exists
before trying to read its size.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/scripts/Makefile.chkbss