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.
- 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 |
Downloads: | 71 |
Created: | 2022-02-03 |
License: | Open Publication License |
Author(s): | Joseph Koshy |
Warning: Trying to access array offset on false in /home/tutovnfz/public_html/amp/article-amp.php on line 263
Others related eBooks about Libelf by Example
Download free course Managed Software Evolution, pdf file on 439 pages by Ralf Reussner, Michael Goedicke, Wilhelm Hasselbring, Birgit Vogel-Heuser, Jan Keim, Lukas Märtin.
Download free course Anti-fragile ICT Systems, pdf file on 159 pages by by Kjell Jørgen Hole.
Download free course Open Source Systems, pdf file on 217 pages by Vladimir Ivanov, Artem Kruglov, Sergey Masyagin, Alberto Sillitti, Giancarlo Succi.
Download free course Smooth CoffeeScript, pdf file on 231 pages by E. Hoigaard.
Download free course Introduction to OKRs, pdf file on 37 pages by Christina Wodtke.