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:

215298

userrating:


May 25th. 2007:
Words

486

Views

261808

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:

154032

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





GELF_UPDATE_SYM

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

 

NAME

gelf_update_sym - update a class-independent symbol table entry

 

SYNOPSIS

#include <gelf.h>

int gelf_update_sym (Elf_Data *data, int ndx, GElf_Sym *src);

 

DESCRIPTION

Copy a class-independent symbol table entry from src into the SHT_SYMTAB or SHT_DYNSYM section associated with data at entry index ndx.

The number of symbols in the symbol table can be calculated by dividing the size of the corresponding section (sh_size or d_size) by the size of a symbol table entry. The size of a symbol table entry can be obtained from sh_entsize or gelf_fsize(3).

If the corresponding ELF file contains more than 64K sections then gelf_update_symshndx should be used to update a symbol's section index in an extended section index table. See gelf_update_symshndx(3) for more information.

 

PARAMETERS

data
Elf_Data for a symbol table section with type SHT_SYMTAB or SHT_DYNSYM.

ndx
Zero-based index of the symbol table entry to be updated within data.

src
Pointer to the caller-provided symbol table entry. For ELFCLASS32 binaries, st_value and st_size should be able to fit within unsigned 3-bit values. src must not be NULL.

 

RETURN VALUE

On success, this function returns a no-zero value and updates the symbol table entry at index ndx in data. The symbol table section associated with data will be flagged with ELF_F_DIRTY. On failure, zero is returned and elf_errno is set. If data is NULL, then zero is returned and elf_errno is not set.

 

SEE ALSO

gelf_getsym(3), gelf_update_symshndx(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
gelf_update_sym() Thread safetyM-Safe

 

REPORTING BUGS

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
ATTRIBUTES
REPORTING BUGS





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: 12.4 ms