Libelf by Example
- 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 | |
| Downloads | 196 |
| Created | 2022-02-03 |
| License | Open Publication License |
| Author(s) | Joseph Koshy |
Others Computer science tutorials
Others related eBooks about Libelf by Example
-
Developing Backbone.js Applications
Download free course Developing Backbone.js Applications, pdf file on 346 pages by Addy Osmani....
-
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. ...
-
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...
-
Kubernetes for Full-Stack Developers
Download free course Kubernetes for Full-Stack Developers, pdf file on 637 pages by Jamon Camisso, Hanif Jetha, Katherine Juell....
-
Exploring Cloud Computing
Cloud Computing is enabling many trends in IT today: microservices, pay-as-you-go pricing,..., download free Cloud Computing tutorial in PDF (121 pages) created by ....
-
Hibernate Notes for Professionals
Download free course Hibernate Notes for Professionals, pdf file on 38 pages by Stack Overflow Community....
-
Information technology project managers' competencies
Download free course Information technology project managers' competencies, pdf file on 269 pages by Carl Marnewick, Wikus Erasmus, Nazeer Joseph....
-
Semantic Systems. In the Era of Knowledge Graphs
Download free course Semantic Systems. In the Era of Knowledge Graphs, pdf file on 141 pages by Eva Blomqvist, Paul Groth, Victor de Boer, Tassilo Pellegrini, Mehwish Alam, Tobias Käfer, Peter Kieseberg, Sabrina Kirrane, Albert Meroño-Peñuela, Harshvardhan J. Pandit....
-
Coding Freedom: The Ethics and Aesthetics of Hacking
This book is insightful and fascinating, a superbly observed picture of the motives, divisions and history of the free software and software freedom world. ...
-
Pro Git, 2nd Edition
Pro Git (2nd Edition) is your fully-updated guide to Git and its usage in the modern world..., download free Git tutorial in PDF (456 pages) created by Scott Chacon ....