Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Watcom ASM + C puzzle, variable has conflicting addresses (Developers)

posted by Japheth Homepage, Germany (South), 04.01.2026, 16:21

> Open Watcom Linker Version 1.9
> Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
> Created on:       26/01/01 07:10:22


It's actually a OW Wasm v1.9 bug: cmdline option -ml should be a substitute for assembly directive ".model large", but it's implemented inaccurately. With both alternatives, DGROUP is defined and segment _DATA is a member of DGROUP, but the fixup generation for access of an item in _DATA differs:

- .model large: fixups get a "DGROUP frame" (good)
- cmdline option -ml: fixups get a "SEGMENT _DATA" frame (bad)

This bug can be cured for cmdline option -ml by adding an "ASSUME DS:DGROUP" line.

Btw, this bug has been fixed in OW Wasm v2.0.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
23153 Postings in 2179 Threads, 404 registered users (2 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum