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

Intel Trusted Execution Technology for Server Platforms

Computation and the Humanities

RavenDB in Action

UWP Succinctly

Text Mining with R

Others related eBooks about Libelf by Example

Rethinking Productivity in Software Engineering

Get the most out of this foundational reference and improve the productivity of your softw..., download free Software Engineering tutorial in PDF (310 pages) created by Caitlin Sadowski ....

SAT/SMT by Example

Download free course SAT/SMT by Example, pdf file on 585 pages by Dennis Yurichev....

Project Management Skills for All Careers

This textbook provides students with project management skills they can apply in any chosen profession. It offers practical, real-world insights for effective project management and guides you through the essentials of the people and project management. ...

How to Design Programs: An Introduction to Programming and Computing

This second edition has been completely revised. While the book continues to teach a systematic approach to program design, the second edition introduces different design recipes for interactive programs with graphical interfaces and batch programs. It also enriches its design recipes for functions ...

GNU SED

The book heavily leans on examples to present features of sed as well as regular expressio..., download free GNU SED tutorial in PDF (100 pages) created by ....

The Second Internet: Reinventing Computer Networking with IPv6

This book provides a succinct, in-depth tour of all the new features and functions in IPv6. It guides you through everything you need to know to get started, including how to configure IPv6 on hosts and routers and which applications currently support IPv6. The new IPv6 protocols offers extended a...

AutoCAD 2010/2011 2D Drawing

This tutorial is aimed at beginner designers who looks to make the leap into Autocad 2010.Here you will learn how to get started, how to use the interface, and how to modify project with basic Autocad tools....

Azure Tips and Tricks

Download free course Azure Tips and Tricks, pdf file on 67 pages by by Michael Crump....

Modern Robotics with OpenCV

How to use a Robot with Computer Vision in order to perform complex tasks, interacting with the surrounding environment, using a distributed system with several software communicating each others and exchanging data across the network....

The Little Book of Semaphores

The Little Book of Semaphores is a free textbook that introduces the principles of synchro..., download free Semaphores tutorial in PDF (291 pages) created by ....