echoplayer: enable USE_ELF to generate ELF binaries

Make the final .echo binary an ELF file. Most STM32s have
their SRAM divided in multiple non-contiguous regions and
putting an ELF loader in the bootloader is basically the
only reasonable way to load Rockbox on such a system.

Change-Id: I818ef9fefe0d53b44cf64402ee1794ad261343eb
This commit is contained in:
Aidan MacDonald 2025-12-20 10:44:04 +00:00
parent 2e85027ae7
commit d24a127f63

5
tools/configure vendored
View file

@ -4337,6 +4337,11 @@ fi
# generate debug symbols by default; these will be present in the
# initial '.elf' file but will be stripped from the target binary.
GCCOPTS="-g $GCCOPTS"
# set page size to 4k to guarantee reasonable on-disk alignment,
# which improves disk read speed; on ARM binutils defaults to 64k
# which adds quite a bit of unnecessary padding.
GCCOPTS="-Wl,-z,max-page-size=4096 $GCCOPTS"
USE_ELF="yes"
;;
280|surfansf28)