STM32 platform uploads ELF file, not BIN

Anything changes when you set

board_build.ldscript = jtag_c8.ld

?