#ifndef TLSBUFSIZE #define TLSBUFSIZE (64 + 16 * 100 - 2) #endif __thread char tlsbuf[TLSBUFSIZE] __attribute__((tls_model("initial-exec"))) = "large tls object"; char *gettls() { return tlsbuf; }