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

Others Computer science Tutorials

Learning Regular Expressions

Microsoft Platform and Tools for Mobile App Development

How the World Changed Social Media

Lightweight Systems for Realtime Monitoring

Azure Tips and Tricks

Others related eBooks about Libelf by Example

Visual Studio for Mac Succinctly

Download free course Visual Studio for Mac Succinctly, pdf file on 107 pages by Alessandro Del Sole....

A Practical Guide to TPM 2.0

Download free course A Practical Guide to TPM 2.0, pdf file on 375 pages by by Will Arthur, David Challener, Kenneth Goldman....

Discrete Structures for Computer Science: Counting, Recursion, and Probability

This book provides a broad introduction to some of the most fascinating and beautiful areas of discrete mathematical structures. It starts with a chapter on sets and goes on to provide examples in logic, applications of the principle of inclusion and exclusion and finally the pigeonhole principal. ...

HackSpace Magazine: Issue 50

Download free course HackSpace Magazine: Issue 50, pdf file on 116 pages by HackSpace Team....

Access Control and internet Filtering

Looking for an insightful guide to the growing trend of internet filtering, censorship, and online surveillance around the world? Look no further than Access Controlled, a free 635-page PDF file offered by MIT Press....

Software & Hardware Collide

Download free course Software & Hardware Collide, pdf file on 80 pages by Jon Bruner, Glen Martin, Matthew Gast, Tim O'Reilly, Kipp Bradford, Jim Stogdill, Andy Fitzgerald....

A Rust Sampler

Download free course A Rust Sampler, pdf file on 27 pages by by Carol Nichols, Jake Goulding....

Pro Git

Pro Git (Second Edition) is your fully-updated guide to Git and its usage in the modern world. Git has come a long way since it was first developed by Linus Torvalds for Linux kernel development. It has taken the open source world by storm since its inception in 2005, and this book teaches you how...

SLO Adoption and Usage in Site Reliability Engineering

Download free course SLO Adoption and Usage in Site Reliability Engineering, pdf file on 104 pages by Julie McCoy, Nicole Forsgren....

Gameplay, Emotions and Narrative

Download free course Gameplay, Emotions and Narrative, pdf file on 325 pages by Katarzyna Marak, Mi Markocki, Dariusz Brzostek....