Skip to content

Optimize ARM relocation

Benoît Thébaudeau u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest0 of 6 patches 0 repliesNew
  2. v14 of 5 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchBeno?t Th?baudeau
SeriesR-b

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

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/6] Optimize ARM relocation

Hi Albert,

Quoted 22 lines · Albert ARIBAUD

This series optimizes relocation by ensuring ARM binaries only use one type of relocation record, R_ARM_RELATIVE., then optimizing relocation code accordingly.

1. A Makefile rule is added that checks that no other relocation record types are generated except R_ARM_RELATIVE; build fails if this is the case.

2. All references to dymsym are removed, as this table is not used for R_ARM_RELATIVE relocations.

3. arch/arm/lib/bss.c is replaced by a more generic arch/arm/lib/sections.c where all section symbols will be defined.

4. __image_copy_start and __image_copy_end symbols are moved from linker scripts to arch/arm/lib/sections.c

5. __rel_dyn_start and __rel_dyn_end are moved from linker scripts into arch/arm/lib/sections.c

Quoted 8 lines

6. relocate_code is optimized based on the fact that symbol references are now always valid even before relcation, and that only R_ARM_RELATIVE relocations will be met.

Changes in v3:
- fix commit message typo (of -> if)
- fix commit message typo (breaks -> break)

For this v3 series:

Best regards,
Beno?t