[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230621114439.42851-1-alexghiti@rivosinc.com>
Date: Wed, 21 Jun 2023 13:44:38 +0200
From: Alexandre Ghiti <alexghiti@...osinc.com>
To: Ard Biesheuvel <ardb@...nel.org>, linux-kernel@...r.kernel.org,
linux-efi@...r.kernel.org
Cc: Alexandre Ghiti <alexghiti@...osinc.com>
Subject: [RFC PATCH 0/1] zboot: Garbage collect unused functions
This patch is meant to solve the issue reported by lkp in [1] with the KASLR
series support for RISC-V.
The problem in [1] is caused by the addition of new functions in
efi-stub-helper.c which reference symbols that are not defined in the context
of zboot. Those functions are not used in zboot but it causes those link
errors.
I can move those new functions around so that the problem disappears, but I
believe that fixing that using the linker garbage collection is more sane.
That's an RFC, I'll include it in my KASLR series if that's the right
direction.
[1] https://lore.kernel.org/oe-kbuild-all/202306080741.ArdxyO6n-lkp@intel.com/
Alexandre Ghiti (1):
libstub: zboot: Use -ffunction-sections + --gc-sections
drivers/firmware/efi/libstub/Makefile | 1 +
drivers/firmware/efi/libstub/Makefile.zboot | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
--
2.39.2
Powered by blists - more mailing lists