Make __tunables_init hidden and avoid PLT
commit81efada5287c3215307623e57d3bbbeefa0c1250
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 25 May 2017 13:55:42 +0000 (25 06:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 25 May 2017 13:55:58 +0000 (25 06:55 -0700)
treeac1ed59200482f5e459f3422b9f3de83d3a30e8a
parentee8015b9ea084d5727ce477fdd8d935f1de7f7f6
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.
ChangeLog
elf/dl-tunables.c
elf/dl-tunables.h