Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!iuvax!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!csj06895 From: csj06895@uxa.cso.uiuc.edu (Christopher S Jones) Newsgroups: comp.os.msdos.programmer Subject: MSC 6.0/MASM 5.1 Linking Summary: Ordering Segments when linking Keywords: MSC, Link Message-ID: <1990Sep5.173426.15961@ux1.cso.uiuc.edu> Date: 5 Sep 90 17:34:26 GMT Sender: news@ux1.cso.uiuc.edu (News) Distribution: comp.sys.ibm.pc.programmer Organization: University of Illinois at Urbana Lines: 7 I am writing a device driver which needs to be written in MSC. Of course, I am using a small MASM module to handle the header information and linking to the C strategy routine. Anyway, my problem is that my code segment is being placed before my data segment, making the driver unrecognizable. In MASM, I'm using the .MODEL SMALL,C along with .DATA and .CODE definitions which may be part of the problem. Anyone know how I can specify how I want the segments ordered? The /a (MASM) option doesn't quite do it right.