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: 26
Created: 2022-02-03
License: Open Publication License
Author(s): Joseph Koshy
Libelf by Example

Others Computer science Tutorials

Enhanced Living Environments

Handbook on Craniofacial Superimposition

Learning Vue.js

Snake Wrangling for Kids

ember 101

Others related eBooks about Libelf by Example

Programming from the Ground Up: An Introduction to Programming using Linux Assembly Language

Programming from the Ground Up uses Linux assembly language to teach new programmers the most important concepts in programming. It takes you a step at a time through these concepts: * How the processor views memory * How the processor operates * How programs interact with the operating system * H...

Learning Go

Download free course Learning Go, pdf file on 109 pages by Miek Gieben....

Category Theory for Programmers

Category Theory is one of the most abstract branches of mathematics. It is usually taught ..., download free Category Theory tutorial in PDF (498 pages) created by Bartosz Milewski ....

AI for Everyone?

Download free course AI for Everyone?, pdf file on 310 pages by by Pieter Verdegem....

The Complete Guide to Rooting Your Android Phone or Tablet

Download free Android PDF tutorial in 12 chapters and 18 pages. This course helps users to know the efficient way to root their Android smartphone or tablet. ...

Fundamentals of Cryptology

Download fundamentals cryptography pdf tutorial, a complete and free training document under 603 pages by Henk C.A. van Tilborg....

Keras Succinctly

Download free course Keras Succinctly, pdf file on 105 pages by James McCaffrey....

Libelf by Example

This tutorial introduces libelf, a library for reading and writing object code in the Exte..., tutorial in PDF ( 61 pages) created by Joseph Koshy ....

Understanding Machine Learning: From Theory to Algorithms

Download Understanding Machine Learning tutorial, a complete eBook created by Shai Shalev-Shwartz and Shai Ben-David....

Front-end Developer Handbook

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