test code:
int TestMain(){ g_TestTest++; return 0;}
#pragma clang section rodata=".rti_fn.6" __attribute((used)) const init_fn_t __rt_init_TestMain = TestMain;#pragma clang section rodata=""
If you link to a .o file, no problem. But if you use armar to generate the.a file and then link it, the variable is deleted
How to solve this problem?