mbox series

[0/3] efi_loader: Fix -fdata-section fallout with bss

Message ID 20180820123220.55342-1-agraf@suse.de
Headers show
Series efi_loader: Fix -fdata-section fallout with bss | expand

Message

Alexander Graf Aug. 20, 2018, 12:32 p.m. UTC
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(-)