Debugging and mapping functions (MS Linker) (Developers)
> at the beginning of your .exe file, there is a "relocation" table, meaning
> "when loading the program into RAM at a certain address, please add this
> address to these locations".
> this offset is obviously the same for the entire program.
>
> > I used that to find one function after locating
> > another function that had the same segment in the MAP file. But that was
> a
Thanks for these pointers! I did some more searching and found some detailed explanations how the PSP works and how to find the segment the EXE was loaded to. That will be useful.
> CODEVIEW for MSC
> WDB/WDEB386 for WCC
> ...
Yes... I know I make things difficult for myself, but my project involves trying to make something with the toolchain that Microsoft kindly included in their 2024 release of MS-DOS 4.0. Unfortunately they did not include CODEVIEW.
https://github.com/microsoft/MS-DOS/tree/main/v4.0/src/TOOLS
Besides using the DOSBox-X debugger is (other than the lack of symbols) convenient compared to running a debugger inside of DOS. Especially since it is an application with graphics.
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