u-boot/arch
Joel Stanley 3045d61c1c aspeed/spl: Remove OVERLAY from linker script
The generic arm linker script contains this section:

   .bss __rel_dyn_start (OVERLAY) : {
       ...
   }

The (OVERLAY) syntax in the description causes the .bss section to be
included in the NOR area of the image:

 $ objdump -t -j .bss spl/u-boot-spl
  SYMBOL TABLE:
  0000c61c l    d  .bss	00000000 .bss
  0000c640 l     O .bss	00000040 __value.0
  0000c68c g     O .bss	00000000 __bss_end
  0000c61c g     O .bss	00000000 __bss_start
  0000c680 g     O .bss	0000000c stdio_devices

This is what the custom linker script tries to avoid, as the NOR area is
read-only.

Remove the OVERLAY syntax to fix the BSS location:

 $ objdump -t -j .bss spl/u-boot-spl
  SYMBOL TABLE:
  83000000 l    d  .bss	00000000 .bss
  83000000 l     O .bss	00000040 __value.0
  0000c61c g     O .bss	00000000 __image_copy_end
  8300004c g     O .bss	00000000 __bss_end
  83000000 g     O .bss	00000000 __bss_start
  83000040 g     O .bss	0000000c stdio_devices

This restores the state of the linker script before the patch that fixed
the linker lists issue.

Fixes: f6810b749f ("aspeed/ast2600: Fix SPL linker script")
Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-07-06 14:32:00 -04:00
..
arc linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
arm aspeed/spl: Remove OVERLAY from linker script 2022-07-06 14:32:00 -04:00
m68k m68k: Remove unused PCI code 2022-07-05 17:04:59 -04:00
microblaze Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
mips Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
nios2 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
powerpc Convert CONFIG_SYS_FSL_PCI_VER_3_X to Kconfig 2022-07-05 17:05:00 -04:00
riscv linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
sandbox sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
sh linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
x86 tpl: Ensure all TPL symbols in Kconfig have some TPL dependency 2022-06-28 17:03:31 -04:00
xtensa xtensa: Switch to using CONFIG_XTENSA for building device trees 2022-06-28 17:03:31 -04:00
.gitignore
Kconfig nxp: Rename board/freescale/common/Kconfig to arch/Kconfig.nxp 2022-07-05 17:03:02 -04:00
Kconfig.nxp Convert CONFIG_PCIE1 et al to Kconfig 2022-07-05 17:04:59 -04:00
u-boot-elf.lds