fix crashing ldso on archs where __set_thread_area examines auxv
authorRich Felker <dalias@aerifal.cx>
Wed, 1 Jan 2020 02:59:07 +0000 (21:59 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 1 Jan 2020 02:59:07 +0000 (21:59 -0500)
commitb82cd6c78d812d38c31febba5a9e57dbaa7919c4
treee28a39dc038a3ae1ecdf8ecc2c50512b25d8b69f
parentb529ec9b52ff4b94e455f0e6cb1f3ef3994560d5
fix crashing ldso on archs where __set_thread_area examines auxv

commit 1c84c99913bf1cd47b866ed31e665848a0da84a2 moved the call to
__init_tp above the initialization of libc.auxv, inadvertently
breaking archs where __set_thread_area examines auxv for the sake of
determining the TLS/atomic model needed at runtime. this broke armv6
and sh2.
ldso/dynlink.c