aboutsummaryrefslogtreecommitdiff
path: root/elf/tlsdeschtab.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2017-10-23 12:15:40 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2017-11-03 14:40:28 +0000
commit0cc5b022f817eeaa81735ae58717b5dabae92941 (patch)
treec8f6c38a8108e8d8ff68e9df6908e7610245e6b0 /elf/tlsdeschtab.h
parent43ddff2e364c69847f5f698f6a43f9dde328b76a (diff)
downloadglibc-0cc5b022f817eeaa81735ae58717b5dabae92941.zip
glibc-0cc5b022f817eeaa81735ae58717b5dabae92941.tar.gz
glibc-0cc5b022f817eeaa81735ae58717b5dabae92941.tar.bz2
Mark lazy tlsdesc helper functions unused to avoid warnings
These static functions are not needed if a target does not do lazy tlsdesc initialization. * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused. (_dl_tlsdesc_wake_up_held_fixups): Likewise.
Diffstat (limited to 'elf/tlsdeschtab.h')
-rw-r--r--elf/tlsdeschtab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/tlsdeschtab.h b/elf/tlsdeschtab.h
index ad3001d..8796318 100644
--- a/elf/tlsdeschtab.h
+++ b/elf/tlsdeschtab.h
@@ -137,6 +137,7 @@ _dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset)
avoid introducing such dependencies. */
static int
+__attribute__ ((unused))
_dl_tlsdesc_resolve_early_return_p (struct tlsdesc volatile *td, void *caller)
{
if (caller != atomic_load_relaxed (&td->entry))
@@ -155,6 +156,7 @@ _dl_tlsdesc_resolve_early_return_p (struct tlsdesc volatile *td, void *caller)
}
static void
+__attribute__ ((unused))
_dl_tlsdesc_wake_up_held_fixups (void)
{
__rtld_lock_unlock_recursive (GL(dl_load_lock));