*BSD News Article 74080


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!oleane!jussieu.fr!eurocontrol.fr!ramses.eurocontrol.fr!not-for-mail
From: rbt@eurocontrol.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GNU assembler
Date: 18 Jul 1996 09:34:59 GMT
Organization: Eurocontrol EEC, Bretigny, France
Lines: 14
Message-ID: <4sl0g3$p42@ramses.eurocontrol.fr>
References: <31ED89D2.41C6@raleigh.ibm.com>
NNTP-Posting-Host: mozart.eurocontrol.fr

 [courtesy cc of this posting sent to cited author via email]

In article <31ED89D2.41C6@raleigh.ibm.com>,
> I have created a file called fred.s that contains a single nop.
> I run "as -o stuff fred.s" and then "ld stuff". An a.out is produced
> that automagically core dumps (segmentation violation).

You can use gcc -o stuff fred.s too.

As for the SEGV, are you sure you don't have a bug somewhere, like writing
at address 0 ?
-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TIS -=-   Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique