Map file
The linker's receipt: a text file listing where every function and variable ended up and how much room it takes.
Pass -Wl,-Map=firmware.map and GNU ld writes out the full result of its work: which sections went into which memory region, the address and size of every symbol, and which object file or library dragged it in. On a desktop almost nobody reads it. On a microcontroller with 64 KB of flash it is the first thing you open when the link suddenly fails because .text no longer fits.
The answer is nearly always in there. One call to printf with %f can pull in tens of kilobytes of floating-point formatting, and the map file shows exactly who asked for it. The format is unstandardised and varies between linkers, which is why entire tools exist solely to turn map files into something a human can read.