]> git.baikalelectronics.ru Git - kernel.git/commit
s390/purgatory: Make sure we fail the build if purgatory has missing symbols
authorHans de Goede <hdegoede@redhat.com>
Thu, 12 Dec 2019 20:53:04 +0000 (21:53 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 18 Dec 2019 22:29:26 +0000 (23:29 +0100)
commit60716a6f480993293841514b4819f70f7045e985
tree6868b187885493c873aaedb7242c3d516136060d
parent3538850ad5978d0e58b077897fa274ea73b66bb6
s390/purgatory: Make sure we fail the build if purgatory has missing symbols

Since we link purgatory with -r aka we enable "incremental linking"
no checks for unresolved symbols are done while linking the purgatory.

This commit adds an extra check for unresolved symbols by calling ld
without -r before running objcopy to generate purgatory.ro.

This will help us catch missing symbols in the purgatory sooner.

Note this commit also removes --no-undefined from LDFLAGS_purgatory
as that has no effect.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/lkml/20191212205304.191610-1-hdegoede@redhat.com
Tested-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/purgatory/.gitignore
arch/s390/purgatory/Makefile