Programming languages and compilers

A compiled object file refers to a function defined in another object file. Which tool or stage typically combines the files and resolves that external reference?