Libelf by Example



Download free course Libelf by Example, pdf file on 61 pages by Joseph Koshy.
This tutorial introduces libelf, a library for reading and writing object code in the Extensible Linking Format (ELF) file format.
- Getting started with libelf: obtaining a handle to an ELF object, establishing a working ELF version, and handling errors reported by libelf.
- How ELF data structures are laid out in-memory and on disk, the notions of "file representation" and "memory representation", how to write applications that can handle non-native binaries.
- ELF Segments and the ELF Program Header Table, retrieving the program header table from an ELF executable and the meaning of the fields of a program header table entry.
- How data is stored inside ELF sections, the ELF Section Header Table, and how to traverse the sections in an ELF object.
- How to create new ELF objects: the rules for ordering individual API calls, the default object layout implemented by libelf, and how to specify custom layouts.
- ar archives: their structure, and how to read the contents of these archives using the APIs provided by libelf.

The example programs in this tutorial are written in the C programming language.

While written for the libelf implementation that is part of the Elftoolchain open-source project, this tutorial is expected to be compatible with other libelf implementations, such as that offered by the GNU project.

Table of contents

  • Introduction
  • Getting Started
  • Peering Inside an ELF Object
  • Examining the Program Header Table
  • Looking at Sections
  • Creating New ELF Objects
  • Processing ar archives
  • Conclusion
Pages : 61
Size : 1.1 MB
File type : PDF
Downloads: 74
Created: 2022-02-03
License: Open Publication License
Author(s): Joseph Koshy
Libelf by Example

Warning: Trying to access array offset on false in /home/tutovnfz/public_html/article.php on line 233

Others Computer science Tutorials

Learn Azure in a Month of Lunches

Perl Notes for Professionals

Learning iOS

Configuring Microsoft SharePoint Hybrid Capabilities

PicoLisp Works

Others related eBooks about Libelf by Example

Migrating Big Data Analytics into the Cloud

Download free course Migrating Big Data Analytics into the Cloud, pdf file on 16 pages by Mike Barlow....

Intel Trusted Execution Technology for Server Platforms

Intel Trusted Execution Technology (Intel TXT) is a new security technology that started a..., download free Server Platforms tutorial in PDF (153 pages) created by William Futral ....

Rust tutorial in PDF

Download free Rust tutorial course in PDF, training file in 50 chapters and 184 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

Rethinking the Internet of Things

Over the next decade, most devices connected to the Internet will not be used by people in..., download free Internet of Things tutorial in PDF (192 pages) created by Francis daCosta ....

DevOps: WTF?

Download free course DevOps: WTF?, pdf file on 20 pages by Don Jones....

High-Performance Caching with Nginx and Nginx Plus

Download free course High-Performance Caching with Nginx and Nginx Plus, pdf file on 47 pages by Floyd Smith....

Satellite Positioning - Methods, Models and Applications

Satellite positioning techniques, particularly global navigation satellite systems (GNSS), are capable of measuring small changes of the Earths shape and atmosphere, as well as surface characteristics with an unprecedented accuracy....

Sensor Technologies

Download free course Sensor Technologies, pdf file on 321 pages by Michael J. McGrath, Cliodhna Ní Scanaill....

Front-end Developer Handbook

Download free course Front-end Developer Handbook, pdf file on 145 pages by Cody Lindley....

Think Data Structures

If you're a student studying computer science or a software developer preparing for techni..., download free Data Structures tutorial in PDF (128 pages) created by ....