Debugging and mapping functions (MS Linker) (Developers)
> I think those segments in the map file are relative to the base segment,
> where the EXE gets loaded. So, if you load the EXE into a debugger and note
> the base segment, you can then add the segment from the map file and
> that'll be the segment of the function or variable.
>
> Alternatively, can you compile your code using the tiny memory model, where
> everything is in one segment?
Unfortunately the program is in large memory model with code in multiple segments.
It seems as if all symbols that have the same segment in the EXE file end up with the same segment in RAM, but not sure if that is by design or just how it happened to be? I used that to find one function after locating another function that had the same segment in the MAP file. But that was a bit time-consuming.
Complete thread:
- Debugging and mapping functions (MS Linker) - lifelike, 20.03.2025, 20:59 (Developers)
- Debugging and mapping functions (MS Linker) - alexfru, 21.03.2025, 05:02
- Debugging and mapping functions (MS Linker) - lifelike, 21.03.2025, 20:15
- Debugging and mapping functions (MS Linker) - tom, 22.03.2025, 21:58
- Debugging and mapping functions (MS Linker) - lifelike, 25.03.2025, 23:16
- Debugging and mapping functions (MS Linker) - Japheth, 26.03.2025, 05:03
- Debugging and mapping functions (MS Linker) - marcov, 26.03.2025, 11:03
- Debugging and mapping functions (MS Linker) - lifelike, 27.03.2025, 20:02
- Debugging and mapping functions (MS Linker) - ecm, 26.03.2025, 09:59
- Debugging and mapping functions (MS Linker) - Japheth, 26.03.2025, 05:03
- Debugging and mapping functions (MS Linker) - lifelike, 25.03.2025, 23:16
- Debugging and mapping functions (MS Linker) - tom, 22.03.2025, 21:58
- Debugging and mapping functions (MS Linker) - lifelike, 21.03.2025, 20:15
- Debugging and mapping functions (MS Linker) - Rugxulo, 21.03.2025, 06:20
- Debugging and mapping functions (MS Linker) - lifelike, 21.03.2025, 20:12
- Debugging and mapping functions (MS Linker) - alexfru, 21.03.2025, 05:02