[PATCH] Use IE model for static variables in glibc
Roland McGrath
roland@hack.frob.com
Thu Jul 9 20:40:00 GMT 2015
The tests should have comments explaining what they are testing.
If it's important that all TLS accesses in libc code be IE, then there
should be a static test for that. Perhaps it could grep readelf -r output
for the TLS dynamic reloc types. Or perhaps there is something we could do
to make references to __tls_get_addr when linking libc.so be a hard failure.
If the intent is to catch all TLS access in libc code, then why are you
touching the source instead of just compiling with -ftls-model=initial-exec
across the board? If we do that, then it's probably fine not to have the
static test.
Thanks,
Roland
More information about the Libc-alpha
mailing list