>> Can't it read the information from the file and pass it on the side to the
>> runtime?
>
> Yes, it could, but what mechanism would you use to pass this information,
> and why would you want to do this? The existing __tls_* symbols work well
> enough without adding logic to the TCB.
The idea was to have more vanilla ELF files, but having less trusted
code is probably more important.
>> If that is to cumbersome, I will probably send a patch
>> upstream adding the definitions of __tls_* symbols. It looks like a
>> generally useful thing to have and not too NaCl specific.
>
> Do you mean upstream to binutils? Sounds OK, though I do wonder if it makes
> sense to upstream the binutils changes piecemeal. We do require other
> linker script changes and this __tls_* change might not be very useful on
> its own.
So, what we have that is different from the standard script is
*) Program header is not loaded
*) Segments are aligned to 64k
*) __tls_* symbols
*) Special initial addresses.
Is that it? If so I will try to send patches to gold in the background
to implement it. Gold does support scripts (I am using it for
testing), but is faster when not using one. The last item is in fact
already implemented as a command line option.
> Cheers,
> Mark
Cheers,
--
Rafael Ávila de Espíndola