This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__attribute__((used)) issue

I defined function as below in library object , 

int test_func() __attribute__((used))

{

 ....

}

and this function has no non-weak reference in my project, when I compiled the project, it gives the warning "L6418W tagging symbol __tagsym$$used.0 defined in xxx.obj is not recognized", and I find the symbol test_func is removed by armlinker, I am amazing since I used "__attribute__((used))" to tell linker not remove the symbol test_func but failed.  I donot know why, can anyone help to explain it? 

my toolchain version is Arm Compiler 6.12 ( Armclang V6.12, armliner V6.12 )