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: 45
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

Think Bayes

NGINX Unit Cookbook

LaTeX Notes for Professionals

The Little Go Book

Open Data Structures

Others related eBooks about Libelf by Example

Notes on Data Structures and Programming Techniques

There are two purposes to this book: to teach you to program in the C programming language, and to teach you how to choose, implement, and use data structures and standard programming techniques. ...

Arduino Programming Notebook

A beginner's reference to the programming syntax of the Arduino microcontroller. Includes information on program structure, variables, datatypes, arithmetic, constants, flow control, and most of the common functions of the core library. Also includes an appendix with schematics and simple programs...

Proofs and Concepts: The Fundamentals of Abstract Mathematics

This undergraduate textbook provides an introduction to proofs, logic, sets, functions, and other fundamental topics of abstract mathematics. It is designed to be the textbook for a bridge course that introduces undergraduates to abstract mathematics, but it is also suitable for independent study by...

An Introduction to Machine Learning, 2nd Edition

This book presents fundamental machine learning concepts in an easy to understand manner b..., download free Machine Learning tutorial in PDF (348 pages) created by Miroslav Kubat ....

Modern C

Download free course Modern C, pdf file on 324 pages by Jens Gustedt....

Test-Driven iOS Development with Swift

Test-driven development (TDD) is a proven way to find software bugs early. Writing tests b..., download free Testing tutorial in PDF (218 pages) created by Dr. Dominik Hauser ....

Getting Started with InnerSource

Download free course Getting Started with InnerSource, pdf file on 22 pages by Andy Oram....

Learning Vue.js

Download free course Learning Vue.js, pdf file on 93 pages by Stack Overflow Community....

Fundamentals of Cryptology

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

Software Architecture Patterns

The success of any application or system depends on the architecture pattern you use. By describing the overall characteristics of the architecture, these patterns not only guide designers and developers on how to design components, but also determine the ways in which those components should inte...