Skip to content

Various toolchain compatibility fixes/improvements

Sam Edwards u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 8 repliesIn review
  2. v117 patches 31 repliesSuperseded

Changes in v2 from the cover letter

- Carried forward acked/reviewed tags
- Dropped two patches (one was incorrect, the other can be fixed differently)
- Minor phrasing changes to commit messages
- Instead of removing ENTRY(_start), I instead added .globl _start where appropriate, in the EFI apps

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15arm: Remove stray .mmutable reference in linker scriptarch/arm/cpu/u-boot.lds+0 -90 replies
2/15arm: Exclude eabi_compat from LTOarch/arm/lib/Makefile+1 -00 replies
3/15arm: Add __aeabi_memclr in eabi_compatarch/arm/lib/eabi_compat.c+5 -00 replies
4/15arm: Add aligned-memory aliases to eabi_compatarch/arm/lib/eabi_compat.c+12 -00 replies
5/15arm: Discard unwanted sections in linker scriptarch/arm/cpu/u-boot.lds+10 -101 reply
6/15arm: Replace 'adrl' in EFI crt0arch/arm/lib/crt0_arm_efi.S+2 -11 reply
7/15x86: Fix call64's section flagsarch/x86/cpu/i386/call64.S+1 -10 replies
8/15makefile: Avoid objcopy --gap-fill for .hex/.srecMakefile+5 -51 reply
9/15makefile: Add `norelro` linker optionMakefile+1 -00 replies
10/15makefile: Add READELF command variableMakefile+2 -10 replies
11/15arm: riscv: efi: Export _start symbol from crt0_*_efi stubsarch/arm/lib/crt0_aarch64_efi.S arch/arm/lib/crt0_arm_efi.S arch/riscv/lib/crt0_riscv_efi.S+3 -01 reply
12/15efi_loader: Move .dynamic out of .text in EFIlib/efi_loader/elf_efi.ldsi+3 -31 reply
13/15scripts/Makefile.lib: efi: Preserve the .dynstr section as wellscripts/Makefile.lib+2 -20 replies
14/15spl: riscv: opensbi: Error on misaligned FDTcommon/spl/spl_opensbi.c+5 -00 replies
15/15spl: Align FDT load addresscommon/spl/spl_fit.c+1 -10 replies

Reviews trailers per patch

11 of 15 patches have a Reviewed-by or Acked-by.

PatchIlias ApalodimasHeinrich Schuchardt
1/15R-b
2/15A-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15
8/15A-b
9/15R-b
10/15R-b R-b
11/15R-b
12/15R-b
13/15
14/15
15/15

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

Read the v2 thread

Cover letter [PATCH v2 00/15] Various toolchain compatibility fixes/improvements

Hello again U-Boot list,

This is v2 of my "misc. fixes" series, sent to prepare the codebase for more direct LLVM support in the near future. This series contains several fixes that I found in the process of preparing that support and which address issues independent of any future feature or enhancement. I am sending these now, both so that their inclusion is not delayed by discussion on my upcoming series and to make the latter more manageable.

PLEASE APPLY PARTIALLY! I have tried to sort these so that the most straightforward changes come first. If any patch proves contentious, you can either skip it or stop applying the series at that point. Any patches that need revisions will be included in a future series, but I'm trying to avoid there being a v3 of *this* series. :)

Happy Saturday,
Sam

Changes v1->v2:
- Carried forward acked/reviewed tags
- Dropped two patches (one was incorrect, the other can be fixed differently)
- Minor phrasing changes to commit messages
- Instead of removing ENTRY(_start), I instead added .globl _start where appropriate, in the EFI apps

Sam Edwards (15):
arm: Remove stray .mmutable reference in linker script
arm: Exclude eabi_compat from LTO
arm: Add __aeabi_memclr in eabi_compat
arm: Add aligned-memory aliases to eabi_compat
arm: Discard unwanted sections in linker script
arm: Replace 'adrl' in EFI crt0
x86: Fix call64's section flags
makefile: Avoid objcopy --gap-fill for .hex/.srec
makefile: Add norelro linker option
makefile: Add READELF command variable
arm: riscv: efi: Export _start symbol from crt0_*_efi stubs
efi_loader: Move .dynamic out of .text in EFI scripts/Makefile.lib: efi: Preserve the .dynstr section as well
spl: riscv: opensbi: Error on misaligned FDT
spl: Align FDT load address

 Makefile                        | 14 ++++++++------
 arch/arm/cpu/u-boot.lds         | 29 ++++++++++-------------------
 arch/arm/lib/Makefile           |  1 +
 arch/arm/lib/crt0_aarch64_efi.S |  1 +
 arch/arm/lib/crt0_arm_efi.S     |  4 +++-
 arch/arm/lib/eabi_compat.c      | 17 +++++++++++++++++
 arch/riscv/lib/crt0_riscv_efi.S |  1 +
 arch/x86/cpu/i386/call64.S      |  2 +-
 common/spl/spl_fit.c            |  2 +-
 common/spl/spl_opensbi.c        |  5 +++++
 lib/efi_loader/elf_efi.ldsi     |  6 +++---
 scripts/Makefile.lib            |  4 ++--
 12 files changed, 53 insertions(+), 33 deletions(-)
Signature · 1 line
2.48.1