Path: utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!mcrware!davely From: davely@mcrware.UUCP (Dave Lyons) Newsgroups: comp.os.os9 Subject: Re: more linker problems Message-ID: <4861@mcrware.UUCP> Date: 31 Jan 91 17:20:55 GMT References: <1991Jan29.114204.1751@yogi.fhhosp.ab.ca> Reply-To: davely@mcrware.UUCP (Dave Lyons) Organization: Microware Systems Corp., Des Moines, Iowa Lines: 41 In article <1991Jan29.114204.1751@yogi.fhhosp.ab.ca> edstrom@elmer.hsc.ucalgary.ca (John Edstrom) writes: >So, my question is: how do I get my linker to respect IOMan's data sections? >I would just declare a heap of junk bytes at the top of my vsect if I could >find out how much space the IOMan and SCF filemanager needs to mangle. Is >that information available anywhere? > >I re-read the linker sention of the manual several times and don't see any >options that seem to apply either. I get no unresolved variables so I think >I'm linking to all of the necessary libraries in the proper order. After looking at our makefile's to refresh my memory, I think the solution is this: link the file scfstat.l (found in the LIB directory on distribution media) before your driver's .r file, i.e., a command line something like this l68 /dd/LIB/scfstat.l RELS/yourdriver.r -l=/dd/LIB/sys.l -O=OBJS/yourdriver The file sys.l has a vsect which has ds's for all the storage needed by IOMan and the SCF file manager. You can also use the technique I saw described in another posting which would be to do something like this: * declare driver static storage * vsect ds.b V_SCF MyStuff ds.l V_MyVar Note that you need to use the value V_SCF here instead of V_USER. V_USER defines the beginning of the file manager static storage area and so would not be enough to get you clear of the memory used by the file manager for things like V_QUIT, V_PCHR and the like. I hope this helps solves your problems. Davel -- |Dave Lyons - uunet!mcrware!davely | Just like a V8 under the hood | |-------------------------------------| of a car made of nails and wood | | The opinions of the party of the | Your big heart's gonna break | | first part shall not be taken as... | your little body |