2014-11-04 Joseph Myers <joseph@codesourcery.com>
+ [BZ #14132]
+ * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
+ INTDEF.
+ * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
+ declaration.
+ (_dl_mcount): Use rtld_hidden_proto.
+ * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
+ _dl_mcount.
+ * elf/rtld.c (_rtld_global_ro): Likewise.
+
[BZ #14132]
* elf/dl-init.c (_dl_init): Don't use INTDEF.
* sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
done:
;
}
-INTDEF(_dl_mcount)
+rtld_hidden_def (_dl_mcount)
struct link_map *l, ElfW(Word) reloc_arg,
ElfW(Addr) retaddr, void *regs, long int *framesizep)
{
- void (*mcount_fct) (ElfW(Addr), ElfW(Addr)) = INTUSE(_dl_mcount);
+ void (*mcount_fct) (ElfW(Addr), ElfW(Addr)) = _dl_mcount;
if (l->l_reloc_result == NULL)
{
._dl_debug_printf = _dl_debug_printf,
._dl_catch_error = _dl_catch_error,
._dl_signal_error = _dl_signal_error,
- ._dl_mcount = _dl_mcount_internal,
+ ._dl_mcount = _dl_mcount,
._dl_lookup_symbol_x = _dl_lookup_symbol_x,
._dl_check_caller = _dl_check_caller,
._dl_open = _dl_open,
/* The actual functions used to keep book on the calls. */
extern void _dl_mcount (ElfW(Addr) frompc, ElfW(Addr) selfpc);
-extern void _dl_mcount_internal (ElfW(Addr) frompc, ElfW(Addr) selfpc)
- attribute_hidden;
+rtld_hidden_proto (_dl_mcount)
/* This function is simply a wrapper around the _dl_mcount function
which does not require a FROMPC parameter since this is the