This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use IE model for static variables in glibc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]