MSVC stores line numbers in obj as extra data accessed via a pointer in various headers.
Official specs are available here "5.3. COFF Line Numbers"
https://courses.cs.washington.edu/courses/cse378/03wi/lectures/LinkerFiles/coff.pdf
Pointers are mentioned in
"4. Section Table (Section Headers)"
"5.5.1. Auxiliary Format 1: Function Definitions"
MSVC stores line numbers in obj as extra data accessed via a pointer in various headers. Official specs are available here "5.3. COFF Line Numbers" https://courses.cs.washington.edu/courses/cse378/03wi/lectures/LinkerFiles/coff.pdf Pointers are mentioned in "4. Section Table (Section Headers)" "5.5.1. Auxiliary Format 1: Function Definitions"