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:

209582

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:

149880

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ELF_RAWFILE

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

 

NAME

elf_rawfile - Retrieve a pointer to the entire raw ELF file image

 

SYNOPSIS

#include <libelf.h>

char *elf_rawfile(Elf *elf, size_t *ptr);

 

DESCRIPTION

The elf_rawfile() function returns a pointer to the entire contents of the ELF file represented by elf. This data is unprocessed and includes everything from the ELF header to the final byte.

If the ELF descriptor was opened from memory or the file has already been memor-mapped or fully read, this function returns a pointer to the internal buffer.

If the ELF data has not yet been read or mapped, it is loaded on demand.

If ptr is no-NULL, the total size in bytes of the raw file is stored in *ptr.

The returned buffer is rea-only and managed internally by libelf. The application must not modify or free it.

 

PARAMETERS

elf
A handle previously returned by elf_begin(3).

ptr
If not NULL, receives the size in bytes of the ELF file.

 

RETURN VALUE

Returns a pointer to the start of the ELF file data. On failure, NULL is returned and *ptr (if no-NULL) is set to 0.

 

SEE ALSO

libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
elf_rawfile() 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: 14.1 ms