mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
The toolchain emits several sections that have no meaning for a flat binary bootloader: .eh_frame DWARF unwind tables (we never unwind) .note.gnu.property BTI/PAC ELF markers (lost at objcopy) .note.gnu.build-id debug identity (lost at objcopy) .comment compiler version string .ARM.attributes ABI metadata Gcc emits roughly 7-8 KB of .eh_frame by default for a build of this size; the others are smaller but equally pointless. Just drop all of them in the linker scripts. Net effect on dreamlte_defconfig w/ empty embedded blobs: 61960 -> ~54000 bytes. Stonks.