From 3012cfb0d26653cbd6ee0c8e4875d3df806bd473 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sun, 13 Aug 2017 21:11:54 +0200 Subject: ld.so: Remove internal_function attribute from various functions These functions are invoked from other DSOs and should therefore use the standard calling convention. --- elf/dl-addr.c | 1 - elf/dl-error-skeleton.c | 4 ---- elf/dl-open.c | 1 - elf/dl-tls.c | 3 --- 4 files changed, 9 deletions(-) (limited to 'elf') diff --git a/elf/dl-addr.c b/elf/dl-addr.c index 1fac63d..83e1b01 100644 --- a/elf/dl-addr.c +++ b/elf/dl-addr.c @@ -121,7 +121,6 @@ determine_info (const ElfW(Addr) addr, struct link_map *match, Dl_info *info, int -internal_function _dl_addr (const void *address, Dl_info *info, struct link_map **mapp, const ElfW(Sym) **symbolp) { diff --git a/elf/dl-error-skeleton.c b/elf/dl-error-skeleton.c index 8de6c87..5b0fc89 100644 --- a/elf/dl-error-skeleton.c +++ b/elf/dl-error-skeleton.c @@ -104,7 +104,6 @@ _dl_signal_exception (int errcode, struct dl_exception *exception, libc_hidden_def (_dl_signal_exception) void -internal_function _dl_signal_error (int errcode, const char *objname, const char *occation, const char *errstring) { @@ -150,7 +149,6 @@ _dl_signal_cexception (int errcode, struct dl_exception *exception, } void -internal_function _dl_signal_cerror (int errcode, const char *objname, const char *occation, const char *errstring) { @@ -210,7 +208,6 @@ _dl_catch_exception (struct dl_exception *exception, libc_hidden_def (_dl_catch_exception) int -internal_function _dl_catch_error (const char **objname, const char **errstring, bool *mallocedp, void (*operate) (void *), void *args) { @@ -225,7 +222,6 @@ libc_hidden_def (_dl_catch_error) #if DL_ERROR_BOOTSTRAP void -internal_function _dl_receive_error (receiver_fct fct, void (*operate) (void *), void *args) { struct catch *old_catch = catch_hook; diff --git a/elf/dl-open.c b/elf/dl-open.c index 91a1d1a..2d8948a 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -162,7 +162,6 @@ add_to_global (struct link_map *new) address ADDR. Returns the pointer to the link map of the matching DSO, or NULL if a match is not found. */ struct link_map * -internal_function _dl_find_dso_for_object (const ElfW(Addr) addr) { struct link_map *l; diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 5aba33b..ddf9fb2 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -439,7 +439,6 @@ _dl_resize_dtv (dtv_t *dtv) void * -internal_function _dl_allocate_tls_init (void *result) { if (result == NULL) @@ -532,7 +531,6 @@ _dl_allocate_tls_init (void *result) rtld_hidden_def (_dl_allocate_tls_init) void * -internal_function _dl_allocate_tls (void *mem) { return _dl_allocate_tls_init (mem == NULL @@ -543,7 +541,6 @@ rtld_hidden_def (_dl_allocate_tls) void -internal_function _dl_deallocate_tls (void *tcb, bool dealloc_tcb) { dtv_t *dtv = GET_DTV (tcb); -- cgit v1.1