[EXT_EP-10834] LTO: linker should include undefined symbols that are referenced from a static function in the IR symbol table that is passed to the LTO recompile Created: 09/Jun/22  Updated: 06/Sep/22  Resolved: 06/Sep/22

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-10067
Found In Release: ARMCLANG_2.1.1.LTS
Fix In Release: ARMCLANG_2.1.1.LTS
Affected Platform/Device: default
Workaround: This issue should not arise when using the 2.1.0.LTS (or later) version of the TI Arm Clang Compiler Tools since a fix to a related issue https://sir.ext.ti.com/jira/browse/EXT_EP-10829 will prevent the linker from failing due to this issue.

 Description   

An externally defined symbol that is referenced from a static function or variable whose section is included in the reference graph should be included in the intermediate representation's symbol table that is presented to the link-time optimizer for recompilation.

For example, if t1.c contains a static function definition that references RTS functions expf and logf and the address of the static function is made available in a data object that is externally accessible, then the expf and logf symbols should be recognized and included in t1.o's intermediate representation module as legitimate unresolved symbol references.


Generated at Wed Apr 02 03:48:21 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.