[EXT_EP-10888] Document '#pragma clang section bss' to be used for uninitialized variables Created: 29/Aug/22 Updated: 12/Sep/22 Resolved: 12/Sep/22 |
|
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-10383 |
Forum URL: | https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1129204/tda4vm-tiarmclang-compiler-issue-only-the-first-clang-data-section-in-a-c-file-was-retained-after-compiled-as-an-object-file-others-are-missing |
Found In Release: | ARMCLANG_2.1.1.LTS ARMCLANG_1.3.0.LTS |
Fix In Release: | ARMCLANG_2.1.1.LTS ARMCLANG_1.3.2.LTS* |
Affected Platform/Device: | default |
Description |
The attached source file has these lines ... #pragma clang section data="one_data" static volatile uint32_t var1 = (uint32_t)(0U); #pragma clang section data="" #pragma clang section data="two_data" static struct sss_tag sss_instance; #pragma clang section data="" Build it ... % tiarmclang -S file.c Inspect the resulting file.s. Both variables get created. The first one is created in the user-named section. The second one is created in the default section .bss, and not the user-named section. |