Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request From: collberg@dna.lth.se (Christian S. Collberg) Newsgroups: comp.sys.sun Subject: mmap (Memory Map) and 407 executables - Do they work together? Keywords: SunOS Message-ID: <6042@brazos.Rice.edu> Date: 23 Mar 90 16:39:58 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 13 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 93, message 4 I am trying to do memory mapped IO in a 407 executable (the old executable format) and am getting strange results, namely the address returned by the mmap function being invalid. When I run the same program as a 413 executable everything works fine. I use the options PROT_WRITE, PROT_READ, and MAP_SHARED. I am running Sun's OS 4.0.3c on a SUN 3/80. Am I missing something obvious or am I just doing something very wrong? Thanks, Chris Collberg collberg@dna.lth.se