This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

linker optimization flag -flto not working

Hi all, I'm working on sdk11.0.0 signed bootloader and I made change in it. Due to these changes bootloader size increased and not fit in the memory allocated to the bootloader for these I added linker optimization flag "-flto" as shown in below

image description

now the size is decreased and fitted in memory allocated to bootloader and it working fine on nrf51 but when I tested on nrf52 dfu failed in middle. Is their any problem using -flto with bootloader in sdk11.0.0. Can anyone help me?

Thanks in advance