sifive / freedom-u540-c000-bootloader

Freedom U540-C000 Bootloader Code
Other
85 stars 39 forks source link

Strip and remove unneeded sections (objcopy) #19

Closed davidlt closed 4 years ago

davidlt commented 5 years ago

Compiling FSBL with OE (linux toolchain, GCC 9.1) resulted in a very sparse binary with ~129MB apparent size. This is because toolchain was configured with linker build id by default. Objcopy left GNU build id section at 0x0. Strip the binary and remove unneeded sections.

The resulting FSBL binary was successfully tested on SiFive Unleashed hardware.

Signed-off-by: David Abdurachmanov david.abdurachmanov@sifive.com