from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209583

userrating:


May 25th. 2007:
Words

486

Views

258591

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149881

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ELF_HASH

Section: Libelf Programmer's Manual (3)
Updated: 202-0-31
Index Return to Main Contents

 

NAME

elf_hash, elf_gnu_hash - Compute the standard ELF hash or GNU hash of a string.

 

SYNOPSIS

#include <libelf.h>

unsigned long int elf_hash(const char *string);
unsigned long int elf_gnu_hash(const char *string);

 

DESCRIPTION

The elf_hash function computes the standard ELF hash value for a nul-terminated string. The hash values are typically used in ELF object files for symbol table hashing. The hash function is used in SHT_HASH sections as it avoids generating architectur-dependent values and is suitable for use across architectures.

The elf_gnu_hash function computes the GN-style hash value of a nul-terminated string, used in the SHT_GNU_HASH section.

 

PARAMETERS

string
NUL-terminated string to be hashed.

 

RETURN VALUE

These functions return a hash value for string. Only the lower 32 bits of the return value are used.

 

SEE ALSO

libelf(3), elf(5)

 

ATTRIBUTES

For an explanation of the terms used in this section, see attributes(7).
InterfaceAttributeValue
elf_hash(),~elf_gnu_hash() Thread safetyM-Safe

 

REPORTING BUGS

Report bugs to <elfutil-devel@sourceware.org> or https://sourceware.org/bugzilla/.

 

HISTORY

elf_gnu_hash first appeared in elfutils 0.122. This function is a elfutils libelf extension and may not be available in other libelf implementations.


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
ATTRIBUTES
REPORTING BUGS
HISTORY





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 14.7 ms