COMS 4995 Advanced Systems Programming

Linking

ELF Overview

Linking an Assembler-Generated Object File

Linking a gcc-Generated Object File

my_libc library

Single Object File Relocation

Linking Multiple Object Files

Each object file will have a mixture of symbol definitions and external symbol references in its symbol table. External symbol references refer to symbols define in some other file and appear as undefined symbols in the referencer’s symbol table. The linker’s job is to merge the input .text sections and symbols into a single executable. Here’s an outline of the steps to be performed:


Last updated: 2024-04-03