Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

FreeBSD 11.0 - man page for elf_getbase (freebsd section 3)

ELF_GETBASE(3)						   BSD Library Functions Manual 					    ELF_GETBASE(3)

elf_getbase -- get the base offset for an object file
ELF Access Library (libelf, -lelf)
#include <libelf.h> off_t elf_getbase(Elf *elf);
Function elf_getbase() returns the file offset to the first byte of the object referenced by ELF descriptor elf. For descriptors referencing members of archives, the returned offset is the file offset of the member in its containing archive. For descriptors to regular objects, the returned offset is (vacuously) zero.
Function elf_getbase() returns a valid file offset if successful, or (off_t) -1 in case of an error.
Function elf_getbase() may fail with the following errors: [ELF_E_ARGUMENT] Argument elf was NULL.
elf(3), elf_getarhdr(3), elf_getident(3), elf_rawfile(3), gelf(3)
June 6, 2010 BSD
Red Hat Linux

Red Hat, Inc. is a global American software company providing open-source software products to the enterprise community. Red Hat was Founded in 1993, and has its corporate headquarters in Raleigh, North Carolina, with other offices worldwide. On October 28, 2018, IBM announced its intent to acquire Red Hat for $34 billion. Red Hat has focused on Red Hat Enterprise Linux an enterprise operating system. Red Hat also acquired the open-source enterprise middleware vendor JBoss. Red Hat also sells an enterprise virtualization product, Red Hat Virtualization (RHV). Red Hat also provides storage, operating system platforms, middleware, applications, management products, and support, training, and consulting services. Red Hat actively creates, maintains, and contributes to many free and open software projects. Red Hat has acquired several proprietary software products through corporate mergers and acquisitions and has released these software acquisitions under open-source licenses.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.