Mark x86 _dl_unmap/_dl_make_tlsdesc_dynamic hidden
Since x86 _dl_unmap and _dl_make_tlsdesc_dynamic are only used internally in ld.so, they can be made hidden. [BZ #19122] * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden. * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise. * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise. * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
This commit is contained in:
parent
983a33fa7d
commit
9edf9b18b1
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
[BZ #19122]
|
||||||
|
* sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
|
||||||
|
* sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
|
||||||
|
Likewise.
|
||||||
|
* sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
|
||||||
|
Likewise.
|
||||||
|
* sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
|
||||||
|
|
||||||
2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
|
2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
|
* sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
struct link_map;
|
struct link_map;
|
||||||
|
|
||||||
extern void internal_function _dl_unmap (struct link_map *map);
|
extern void _dl_unmap (struct link_map *map)
|
||||||
|
internal_function attribute_hidden;
|
||||||
|
|
||||||
#define DL_UNMAP(map) _dl_unmap (map)
|
#define DL_UNMAP(map) _dl_unmap (map)
|
||||||
|
|
|
@ -50,8 +50,9 @@ extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
|
||||||
_dl_tlsdesc_resolve_hold (struct tlsdesc *);
|
_dl_tlsdesc_resolve_hold (struct tlsdesc *);
|
||||||
|
|
||||||
# ifdef SHARED
|
# ifdef SHARED
|
||||||
extern void *internal_function _dl_make_tlsdesc_dynamic (struct link_map *map,
|
extern void *_dl_make_tlsdesc_dynamic (struct link_map *map,
|
||||||
size_t ti_offset);
|
size_t ti_offset)
|
||||||
|
internal_function attribute_hidden;
|
||||||
|
|
||||||
extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
|
extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
|
||||||
_dl_tlsdesc_dynamic (struct tlsdesc *);
|
_dl_tlsdesc_dynamic (struct tlsdesc *);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
struct link_map;
|
struct link_map;
|
||||||
|
|
||||||
extern void internal_function _dl_unmap (struct link_map *map);
|
extern void _dl_unmap (struct link_map *map)
|
||||||
|
internal_function attribute_hidden;
|
||||||
|
|
||||||
#define DL_UNMAP(map) _dl_unmap (map)
|
#define DL_UNMAP(map) _dl_unmap (map)
|
||||||
|
|
|
@ -60,8 +60,9 @@ extern ptrdiff_t attribute_hidden
|
||||||
_dl_tlsdesc_resolve_hold(struct tlsdesc *on_rax);
|
_dl_tlsdesc_resolve_hold(struct tlsdesc *on_rax);
|
||||||
|
|
||||||
# ifdef SHARED
|
# ifdef SHARED
|
||||||
extern void *internal_function _dl_make_tlsdesc_dynamic (struct link_map *map,
|
extern void *_dl_make_tlsdesc_dynamic (struct link_map *map,
|
||||||
size_t ti_offset);
|
size_t ti_offset)
|
||||||
|
internal_function attribute_hidden;
|
||||||
|
|
||||||
extern ptrdiff_t attribute_hidden _dl_tlsdesc_dynamic(struct tlsdesc *);
|
extern ptrdiff_t attribute_hidden _dl_tlsdesc_dynamic(struct tlsdesc *);
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue