/plushcap/analysis/cloudflare/how-to-execute-an-object-file-part-2

How to execute an object file: Part 2

What's this blog post about?

In this post, we have continued our exploration of dynamic linking by implementing a basic loader program that can execute functions from an ELF object file. We started by adding some more complexity to the imported code and then extended our loader program to handle constant data and global variables dependencies. Finally, we successfully executed all the imported functions including those with references to external libraries. The complete source code for this post is available on GitHub. In the next post, we will look into importing and executing object code with references to external libraries. Stay tuned!

Company
Cloudflare

Date published
April 2, 2021

Author(s)
Ignat Korchagin

Word count
4323

Hacker News points
4

Language
English


By Matt Makai. 2021-2024.