Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: where does static data go when code segs are unloaded? Message-ID: <1199@husc6.harvard.edu> Date: 16 Feb 89 17:16:45 GMT References: <17278@genrad.UUCP> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec/THINK Technologies, Bedford, MA Lines: 17 In article <17278@genrad.UUCP> daf@genrad.UUCP (David A. Fagan) writes: >In C, global data is compiled as part of the executable image, right? Nope. Global data is stored in the global data area, which is referenced by negative offsets from A5. At link time, the correct offsets are fixed up by the linker. None of this is affected by runtime changes. --Rich Rich Siegel Staff Software Developer THINK Technologies Division, Symantec Corp. Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel Phone: (617) 275-4800 x305