summaryrefslogtreecommitdiffstats
path: root/libelf/common.h
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2008-01-09 05:49:49 +0000
committerUlrich Drepper <[email protected]>2008-01-09 05:49:49 +0000
commite219f1c1b2a5a2e4f248714fdc93d031cdc5ee6a (patch)
treefa6765a61fa75066ddc0dd271135025748a7faf6 /libelf/common.h
parent9fbf0d9bdcc9043491e7ea53e769506743160760 (diff)
propagate from branch 'com.redhat.elfutils.roland.pending' (head 26cc2ce45739af072e7ff4fdab5e8eb7cd756d50)
to branch 'com.redhat.elfutils' (head bb519012dee7013b2cab5c2f5ed465cb3821b063)
Diffstat (limited to 'libelf/common.h')
-rw-r--r--libelf/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libelf/common.h b/libelf/common.h
index 22fcfab6..757188c1 100644
--- a/libelf/common.h
+++ b/libelf/common.h
@@ -1,5 +1,5 @@
/* Common definitions for handling files in memory or only on disk.
- Copyright (C) 1998, 1999, 2000, 2002, 2005 Red Hat, Inc.
+ Copyright (C) 1998, 1999, 2000, 2002, 2005, 2008 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 1998.
@@ -59,6 +59,7 @@
static inline Elf_Kind
+__attribute__ ((unused))
determine_kind (void *buf, size_t len)
{
/* First test for an archive. */
@@ -86,6 +87,7 @@ determine_kind (void *buf, size_t len)
/* Allocate an Elf descriptor and fill in the generic information. */
static inline Elf *
+__attribute__ ((unused))
allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize,
Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra)
{
@@ -112,6 +114,7 @@ allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize,
/* Acquire lock for the descriptor and all children. */
static void
+__attribute__ ((unused))
libelf_acquire_all (Elf *elf)
{
rwlock_wrlock (elf->lock);
@@ -131,6 +134,7 @@ libelf_acquire_all (Elf *elf)
/* Release own lock and those of the children. */
static void
+__attribute__ ((unused))
libelf_release_all (Elf *elf)
{
if (elf->kind == ELF_K_AR)