~/talk

From Program to Process - What Happens After the Compiler

slides:none on file

Starts from a tiny program int main{return 1} and shows, with Compiler Explorer, hexdump, objdump -d -M intel -r and readelf -r, how that single call becomes a relocation entry (call opcode 0xE8 at offset 0x1d resolved to -0x21), how the linker fixes addresses, and how dynamic linking uses GOT/PLT lazy binding and PIC/PIE to defer and share symbols. Covers ELF sections (.text, .data, .bss, .rodata), System V AMD64 calling convention, and demonstrates the final executable exiting with code 1.

AI-written summary · about

  1. 0:00Intro
  2. 0:36What happens after the compiler
  3. 11:17Relocations
  4. 14:56Linking
  5. 18:03Static Linking
  6. 18:38Separate Files
  7. 20:35Linking Objects
  8. 21:41Data
  9. 27:25Globals
  10. 31:20Relative Distance
  11. 38:26Object Files
  12. 44:21Shared Objects
  13. 45:51Global Offset Table
  14. 50:11Functions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.