Skip to content

efi_loader: Fix -fdata-section fallout with bss

Alexander Graf u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Include bss subsections in linker scriptarch/x86/cpu/u-boot-64.lds arch/x86/cpu/u-boot.lds arch/x86/lib/elf_ia32_efi.lds +1 more+4 -41 reply
2/3x86: Enable -fdata-sections alwaysarch/x86/config.mk+1 -31 reply
3/3riscv: Include bss subsections in linker scriptarch/riscv/cpu/ax25/u-boot.lds+1 -10 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchBin Meng
1/3R-b T-b
2/3R-b T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/3] efi_loader: Fix -fdata-section fallout with bss

While trying to fix efi_loader problems that could only be resolved by enabling individual function and data sections (commit 7e21fbca26d18 "efi_loader: Rename sections to allow for implicit data") some cases where .bss was included in the linker scripts slipped through.

This lead to random breakage when .bss contents were accessed, because the respective regions were not initialized properly.

With this patch set, all those should be resolved now.

Alex

Alexander Graf (3):
x86: Include bss subsections in linker script
x86: Enable -fdata-sections always
riscv: Include bss subsections in linker script

 arch/riscv/cpu/ax25/u-boot.lds  | 2 +-
 arch/x86/config.mk              | 4 +---
 arch/x86/cpu/u-boot-64.lds      | 2 +-
 arch/x86/cpu/u-boot.lds         | 2 +-
 arch/x86/lib/elf_ia32_efi.lds   | 2 +-
 arch/x86/lib/elf_x86_64_efi.lds | 2 +-
 6 files changed, 6 insertions(+), 8 deletions(-)
Signature · 1 line
2.12.3