Skip to content

Make sure 85xx bss doesn't start at 0x0

Peter Tyser u-boot 1 version New

Get series with b4
b4 am 1254916635.20662.22.camel@ptyser-laptop

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] Make sure 85xx bss doesn't start at 0x0
Quoted 8 lines
Quoted 7 lines

It seems like a clean solution. Adding a bss-aware fixup routine or putting the bss after the U-Boot image both seem good to me. The bss-aware fixup routine has a clearer readelf output and slightly more complicated code while the bss-after-uboot change has a misleading readelf output and simpler code. In any case I'd give a thumbs up to either of them.

Quoted 4 lines

My vote is for the first, because otherwise we will run into situations again and again where users and/or the linker get confused about overlapping sections and/or sections wrapping around the physical end of address space.

Are you proposing adding this new bss fixup code to this release, or rolling it into the next release along with Jocke's addition of relocation code written in C-code? Logically it'd be much easier to add this new bss fixup logic to Jocke's 1 C-code function instead of 15 assembly files, but then we'd have to have a temporary 85xx workaround just for this release (which is fine by me).

Best,
Peter