It looks a lot like initial-exec is inappropriate for libGL. At least, it is incompatible with being able to dlopen libGL. However, changing initial-exec to (the most general) global-dynamic doesn't fix this.
There's additionally some hand-generated assembly in glapi, which I've patched out, but the minimal reproducing case still dies. Time to really grok the ELF TLS ABI, I guess.
It looks a lot like initial-exec is inappropriate for libGL. At least, it is incompatible with being able to dlopen libGL. However, changing initial-exec to (the most general) global-dynamic doesn't fix this.
There's additionally some hand-generated assembly in glapi, which I've patched out, but the minimal reproducing case still dies. Time to really grok the ELF TLS ABI, I guess.