[EXT_EP-10348] tiarmlnk generates cinit record for tiny .init_array section Created: 11/May/21  Updated: 06/Sep/22  Resolved: 14/May/21

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

Type: Bug Priority: Medium
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-8899
Found In Release: ARMCLANG_1.3.0.BETA1
Fix In Release: ARMCLANG_1.3.0.LTS
Affected Platform/Device: default

 Description   

Compiling and linking a simple C++ "Hello World" program such as the following:

#include <iostream>
using namespace std;

int main()

{ cout << "Hello World\n"; return 0; }

will cause the linker to generate an auto-initialization record for the compiler-generated .init_array section that is larger than the actual .init_array section.

If possible, the linker should avoid generating an auto-initialization record for the .init_array section when it is inefficient to do so.


Generated at Sun Apr 27 01:27:59 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.