Skip to content
Commit baf2a265 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

misc: Optimize internal usage of __libc_single_threaded



By adding an internal alias to avoid the GOT indirection.
On some architecture, __libc_single_thread may be accessed through
copy relocations and thus it requires to update also the copies
default copy.

This is done by adding a new internal macro,
libc_hidden_data_{proto,def}, which has an addition argument that
specifies the alias name (instead of default __GI_ one).

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: default avatarFangrui Song <maskray@google.com>
parent 5b41b265
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment