This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GNU Arm Embedded ld with LTO support

The current version 7-2018-q2-update of GNU Arm Embedded Toolchain contains arm-none-eabi-ld.bfd, so it does not support Link Time Optimization (LTO).
Is there a problem if I try to compile the LTO version? Is the new linker lto hoping to work? Why wasn't it done? Both versions could be distributed, bfd and lto.

best regards

Max

Parents
  • Hi,

    -flto when linking needs to be passed to GCC, no ld. GCC with then invoke ld with special option to run the LTO plugin. So in your link command line replace ld by gcc (and translate ld specific options to use "-Wl," switch). This will allow you to link successfully an application compiled with LTO.

    Best regards.

Reply
  • Hi,

    -flto when linking needs to be passed to GCC, no ld. GCC with then invoke ld with special option to run the LTO plugin. So in your link command line replace ld by gcc (and translate ld specific options to use "-Wl," switch). This will allow you to link successfully an application compiled with LTO.

    Best regards.

Children
No data