-
Bug
-
Resolution: Duplicate
-
High
-
Code Generation Tools
-
CODEGEN-13028
-
-
-
default
-
Avoid the use of link-time optimization during the link step of an application build by removing the -flto option from the tiarmclang command line.
-
This issue is a duplicate of an internally reported linker defect CODEGEN-12986.
The tiarmclang 4.0.0.LTS linker will experience a segmentation fault and emit an internal error diagnostic when building some applications with link-time optimization enabled. The issue is believed to be triggered by the use of location attributes in the application's source code.
The issue can be reproduced by building examples from the Simplelink SDK (e.g. ti154stack examples) with link-time optimization enabled.
The emitted internal error diagnostic looks like this:
INTERNAL ERROR: C:\ti\compilers\ti-cgt-armllvm_4.0.0.LTS\bin\tiarmlnk experienced a segmentation fault
This is caused by a defect in the TI Linker.
TI Customer Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI on the E2E support forums at http://e2e.ti.com
We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include all of the object files, libraries, and linker command files
used to link the program.
tiarmclang: error: tiarmlnk command failed with exit code 2 (use -v to see invocation)
To avoid this issue, link-time optimization can be disabled by removing the -flto from the tiarmclang command line.