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 alexfru, USA, 21.03.2025, 05:02

...
> The linker (Microsoft Overlay Linker 3.65) generates a MAP-file that is
> mostly just lines like this:
> 1286:0BA2 _flip5
> 1286:0B7E _flip_range
> 31A6:3584 _flist_sel
> 1286:0E2C _fli_abs_tseek
> 21E5:0130 _fli_comp1
> 301E:0068 _fli_comp_frame
>
> Very simple and nice file format, but quite useless without some tool that
> can tell me where each function ends up after I run the EXE and functions
> are relocated?

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?

 

Complete thread:

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