Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: ld Message-ID: <9550@smoke.BRL.MIL> Date: 31 Jan 89 08:54:02 GMT References: <3505@mipos3.intel.com> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <3505@mipos3.intel.com> rajeevc@mipos2.intel.com (Rajeev Chandrasekhar) writes: >When using ld to create an executable with only one object >with no external calls, I get an segmentation fault. Perhaps you forgot to perform the runtime startup actions correctly? Basically if you're building code to run as a user process you should use "cc" to link the code instead of trying to use "ld" directly. That way all the environmental details will be taken care of automatically.