linux-stable/arch/s390/purgatory
Hans de Goede cd92ac2530 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>
2019-12-18 23:29:26 +01:00
..
.gitignore s390/purgatory: Make sure we fail the build if purgatory has missing symbols 2019-12-18 23:29:26 +01:00
head.S s390: clean up stacks setup 2018-09-20 13:20:29 +02:00
kexec-purgatory.S s390/purgatory: Omit use of bin2c 2019-04-29 10:43:55 +02:00
Makefile s390/purgatory: Make sure we fail the build if purgatory has missing symbols 2019-12-18 23:29:26 +01:00
purgatory.c crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h 2019-09-05 14:54:54 +10:00
purgatory.lds.S s390/purgatory: Reduce purgatory size 2019-04-29 10:43:53 +02:00