Messages in this thread Patch in this message | | | From | Nathan Chancellor <> | Date | Wed, 17 Apr 2024 14:53:46 -0700 | Subject | [PATCH 2/2] x86/purgatory: Enable orphan section warnings |
| |
Now that the purgatory has a linker script that explicitly describes all of its sections, turn on orphan section warnings for it so that new sections do not appear without notice.
Signed-off-by: Nathan Chancellor <nathan@kernel.org> --- arch/x86/purgatory/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index dfc030a4cca9..a6c8239abcba 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -17,7 +17,7 @@ CFLAGS_sha256.o := -D__DISABLE_EXPORTS -D__NO_FORTIFY # When linking purgatory.ro with -r unresolved symbols are not checked, # also link a purgatory.chk binary without -r to check for unresolved symbols. PURGATORY_LDFLAGS := -z nodefaultlib -LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS) -T +LDFLAGS_purgatory.ro := --orphan-handling=$(CONFIG_LD_ORPHAN_WARN_LEVEL) -r $(PURGATORY_LDFLAGS) -T LDFLAGS_purgatory.chk := -e purgatory_start $(PURGATORY_LDFLAGS) targets += purgatory.ro purgatory.chk -- 2.44.0
| |