diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-04-13 18:07:10 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-13 18:07:10 -0400 |
commit | 0f66fcec2584706116df70cf1db7f2f8815f4444 (patch) | |
tree | 72d239c570ee75e3abbe8f1c390470f29b61073c /src/process/execl.c | |
parent | f630df09b1fd954eda16e2f779da0b5ecc9d80d3 (diff) | |
download | musl-0f66fcec2584706116df70cf1db7f2f8815f4444.tar.gz musl-0f66fcec2584706116df70cf1db7f2f8815f4444.tar.bz2 musl-0f66fcec2584706116df70cf1db7f2f8815f4444.tar.xz musl-0f66fcec2584706116df70cf1db7f2f8815f4444.zip |
stabilize dynamic linker's layout of static TLS
previously, the layout of the static TLS block was perturbed by the
size of the dtv; dtv size increasing from 0 to 1 perturbed both TLS
arch types, and the TLS-above-TP type's layout was perturbed by the
specific number of dtv slots (libraries with TLS). this behavior made
it virtually impossible to setup a tentative thread pointer address
before loading libraries and keep it unchanged as long as the
libraries' TLS size/alignment requirements fit.
the new code fixes the location of the dtv and pthread structure at
opposite ends of the static TLS block so that they will not move
unless size or alignment changes.
Diffstat (limited to 'src/process/execl.c')
0 files changed, 0 insertions, 0 deletions