[kvm-unit-tests PATCH] Makefile: efi: preserve .dynstr section for LLVM objcopy compatibility

Andrew Jones andrew.jones at linux.dev
Tue Jul 21 01:58:08 PDT 2026


On Thu, Jul 16, 2026 at 05:33:15PM +0000, Colton Lewis wrote:
> When building EFI binaries with llvm-objcopy, keeping sections with
> '-j .dynamic -j .dynsym' without '-j .dynstr' fails with:
> 
>   llvm-objcopy: error: 'arm/spinlock-test.so': section '.dynstr'
>   cannot be removed because it is referenced by the section '.dynamic'
> 
> Include '.dynstr' in the list of preserved sections across
> arm/Makefile.common, riscv/Makefile, and x86/Makefile.common so that
> EFI binaries can be built cleanly using llvm-objcopy.
> 
> Assisted-by: Gemini:gemini-next
> Signed-off-by: Colton Lewis <coltonlewis at google.com>
> ---
>  arm/Makefile.common | 2 +-
>  riscv/Makefile      | 2 +-
>  x86/Makefile.common | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>

Pushed.

Thanks,
drew



More information about the kvm-riscv mailing list