[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> 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. |