how to keep unused symbols in static library?

i want to keep seval unused static variables in static library when making final image, these static variables is defined in a unreference source file。

i used __attibute__((used)) and --keep link option, neither success. i donot know why, can anyone help me? 

More questions in this forum