-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Code Generation Tools
-
CODEGEN-14222
-
-
-
default
-
The attached file has these lines ...
__attribute__((destructor))
void stub() {}
int main()
{
return 0;
}
Build it down to assembly code ...
tiarmclang -S file.c
Inspect the assembly to see ...
.section .fini_array,"a",%fini_array .p2align 2 .long stub(target1)
An entry is made in the section .fini_array. But the startup and cleanup code in the compiler RTS library ignores this entry.