__thread char bar[10] __attribute__ ((visibility("hidden"))); extern char size_of_bar asm ("bar@SIZE"); char *bar_size = &size_of_bar;