Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Debugging and mapping functions (MS Linker) (Developers)

posted by lifelike, 21.03.2025, 20:15

> 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:

Back to the forum
Board view  Mix view
22477 Postings in 2087 Threads, 400 registered users, 110 users online (0 registered, 110 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum