We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?