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

Others Computer science Tutorials

Open Data Structures

CS Unplugged

What Is Data Science?

Operating Systems and Middleware

Ernst Denert Award for Software Engineering 2019

Others related eBooks about Libelf by Example

Engineering Reliable Mobile Applications

Download free course Engineering Reliable Mobile Applications, pdf file on 36 pages by Kristine Chen, Venkat Patnala, Devin Carraway, Pranjal Deo....

Don't Panic: Mobile Developer's Guide to The Galaxy

Download free course Don't Panic: Mobile Developer's Guide to The Galaxy, pdf file on 337 pages by Marco Tabor, Mladenka Vrdoljak....

Rational Cybersecurity for Business

Use the guidance in this comprehensive field guide to gain the support of your top executi..., download free Cybersecurity tutorial in PDF (333 pages) created by Dan Blum ....

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....

Advanced Problems in Mathematics: Preparing for University

This book is intended to help candidates prepare for entrance examinations in mathematics and scientific subjects, including STEP (Sixth Term Examination Paper). STEP is an examination used by Cambridge colleges as the basis for conditional offers. They are also used by Warwick University, and man...

Programming Languages: Application and Interpretation

This book unites two approaches to teaching programming languages, one based on a survey of languages and the other on writing definitional interpreters. It has been used as a textbook at over fifteen institutions worldwide, and is referenced by non-academic users on the Web. The book is updated a...

How To Code in Go

Download free course How To Code in Go, pdf file on 447 pages by Mark Bates, Cory LaNou, Tim Raymond....

Introduction to Probability, Statistics, and Random Processes

This book introduces students to probability, statistics, and stochastic processes. It can be used by both students and practitioners in engineering, various sciences, finance, and other related fields. It provides a clear and intuitive approach to these topics while maintaining mathematical accur...

Introduction to Computers and Programming

Welcome to the world of computer programming! In this book, you will learn the essential concepts of programming using Python language....

Enhanced Living Environments

Download free course Enhanced Living Environments, pdf file on 339 pages by Ivan Ganchev, Nuno Garcia, Ciprian Dobre, Constandinos Mavromoustakis, Rossitza Goleva....