bitbox02-firmware icon indicating copy to clipboard operation
bitbox02-firmware copied to clipboard

Switch to GCC 13

Open NickeZ opened this issue 1 year ago • 2 comments

To reduce the size of the binary a bit we add -mno-unaligned-access because that made struct initialization generate quite a lot more code.

In the new toolchain assert is defined as a macro. That interferes with the ASF function called assert so we undefined it right before that function is defined.

We also have to provide the search path to the linker to our dummy files libssp and libssp_nonshared. The actual implementation of the stack protector functions are in common_main.c.

NickeZ avatar Aug 15 '24 08:08 NickeZ

I will wait this this PR until I have some other CI related things merged and I've tested the device.

NickeZ avatar Aug 19 '24 14:08 NickeZ

Firmware doesn't work. It doesn't pop up the "unlock" screen.

NickeZ avatar Aug 27 '24 08:08 NickeZ

Firmware doesn't work. It doesn't pop up the "unlock" screen.

Since usb stack refactoring modern GCC works.

NickeZ avatar May 08 '25 09:05 NickeZ