Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!apple!motcsd!hpda!hpcuhb!hpcllla!hpclisp!hpclmar!mar From: mar@hpclmar.HP.COM (Michelle Ruscetta) Newsgroups: comp.sys.hp Subject: Re: BUG in unshared programs on HP-UX Message-ID: <1340068@hpclmar.HP.COM> Date: 23 Aug 89 16:45:23 GMT References: <2450@ccncsu.ColoState.EDU> Organization: Hewlett-Packard Calif. Language Lab Lines: 27 > Unshared programs invariably fail to have enough room. > > Reproduce by: < example deleted > > will say on our system: Not enough room. This is not a bug, the -N option cannot be used with exec(2). The man page for ld states that the files resulting from an ld -N link (cc -N compile) are not executable via 'exec'. Non-sharable files are not supported under the standard exec call. The -N is used for special applications -- in particular when building the HPUX kernel. The man page states (under DEPENDENCIES, s800): Nonsharable, executable files generated with the -N option cannot be executed via exec(2). Typically, -N is used when rebuilding the kernel. Another common use for the -N option is when using incremental linking via the linker's -A option. When -N is specified, then the data is placed immediately following the code, which makes it possible to read all of the text and data of the file into memory contiguously.