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:

215299

userrating:


May 25th. 2007:
Words

486

Views

261809

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_REL

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

 

NAME

gelf_update_rel, gelf_update_rela - copy class-independent relocation entries into a relocation section

 

SYNOPSIS

#include <gelf.h>

int gelf_update_rel (Elf_Data *data, int ndx, GElf_Rel  *src);
int gelf_update_rela(Elf_Data *data, int ndx, GElf_Rela *src);

 

DESCRIPTION

The gelf_update_rel() and gelf_update_rela() functions copy a class-independent REL or RELA relocation entry from *src into the SHT_REL or SHT_RELA section associated with data at entry index ndx.

 

PARAMETERS

data
Elf_Data for a relocation section. The section must have sh_type SHT_REL for gelf_update_rel() or SHT_RELA for gelf_update_rela().

ndx
Zero-based index of the relocation entry within data.

src
Pointer to the caller-provided source entry: GElf_Rel for gelf_update_rel() and GElf_Rela for gelf_update_rela(). src must not be NULL.

For ELFCLASS32 binaries, r_offset should fit in unsigned 32 bits. r_addend should fit in signed 32 bits. The GELF_R_SYM component of r_info should fit in 24 bits and the GELF_R_TYPE component should fit in 8 bits.

 

RETURN VALUE

On success, gelf_update_rel() and gelf_update_rela() copy src into data, flag the corresponding section with ELF_F_DIRTY and return a no-zero value. On failure, these functions return 0 and set elf_errno. If src is NULL, then 0 is returned without setting elf_errno.

 

SEE ALSO

gelf_getrel(3), gelf_getrela(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
gelf_update_rel(),~gelf_update_rela() 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: 15.8 ms