#linkers
5 articles tagged #linkers. All tags
A dynamic linker murder mystery
I write a ton of articles about rust. And in those articles, the main focus is about writing Rust code that compiles. Once it compiles, well, we’re basically in the clear! Especially if it compiles…
23 min
Dynamic symbol resolution
Let’s pick up where we left off: we had just taught elk to load not only an executable, but also its dependencies, and then their dependencies as well. We discovered that ld-linux walked the…
26 min
Loading multiple ELF objects
Up until now, we’ve been loading a single ELF file, and there wasn’t much structure to how we did it: everyhing just kinda happened in main, in no particular order. But now that shared libraries are…
32 min
The simplest shared library
In our last article, we managed to load and execute a PIE (position-independent executable) compiled from the following code: ; in `samples/hello-pie.asm`. global _start. section .text. _start: mov…
29 min
ELF relocations
The last article, Position-independent code, was a mess. But who could blame us? We looked at the world, and found it to be a chaotic and seemingly nonsensical place. So, in order to blend in, we had…
17 min