diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-05-25 06:55:42 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-05-25 06:55:58 -0700 |
commit | 81efada5287c3215307623e57d3bbbeefa0c1250 (patch) | |
tree | ac1ed59200482f5e459f3422b9f3de83d3a30e8a /elf/dl-tunables.c | |
parent | ee8015b9ea084d5727ce477fdd8d935f1de7f7f6 (diff) |
Make __tunables_init hidden and avoid PLT
Since __tunables_init is internal to ld.so, we should mark it hidden
to avoid PLT. We should also avoid PLT when calling __tunable_set_val
within ld.so.
2017-05-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
H.J. Lu <hongjiu.lu@intel.com>
* elf/dl-tunables.c (__tunable_set_val): Make a hidden alias.
* elf/dl-tunables.h (__tunables_init): Mark it hidden in rtld.
(__tunable_set_val): Likewise.
Diffstat (limited to 'elf/dl-tunables.c')
-rw-r--r-- | elf/dl-tunables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-tunables.c b/elf/dl-tunables.c index 8d72e268ef..b6e6b3da52 100644 --- a/elf/dl-tunables.c +++ b/elf/dl-tunables.c @@ -470,3 +470,5 @@ cb: if (callback) callback (&cur->val); } + +rtld_hidden_def (__tunable_set_val) |