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
  • arm-none-eabi-ld.bfd is identical to arm-none-eabi-ld. If you do a diff, you will see there is no difference. I'm not sure I understand your question, but the 7-2018-q2-update does support LTO. Eg:

    $ ./arm-none-eabi-gcc -O2 -flto  -specs=rdimon.specs foo.c

    builds a.out without any issues. Could you please let us know if you're not seeing the expected behaviour?

Reply
  • arm-none-eabi-ld.bfd is identical to arm-none-eabi-ld. If you do a diff, you will see there is no difference. I'm not sure I understand your question, but the 7-2018-q2-update does support LTO. Eg:

    $ ./arm-none-eabi-gcc -O2 -flto  -specs=rdimon.specs foo.c

    builds a.out without any issues. Could you please let us know if you're not seeing the expected behaviour?

Children