*BSD News Article 68288


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!news.sol.net!uwm.edu!lll-winken.llnl.gov!nntp.coast.net!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: gcc and FreeBSD
Date: 11 May 1996 12:39:18 GMT
Organization: Private BSD site, Dresden
Lines: 37
Message-ID: <4n21pm$rjj@uriah.heep.sax.de>
References: <Y6nxBDAlWlhxEwlU@ruthless.demon.co.uk>
  <4mde0b$hqu@uriah.heep.sax.de> <4n0b98$o66@zip0.zipnet.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

radics@zipnet.net (Andras Radics) wrote:

> >>'Exec format error. Wrong Architecture.'
> 
> I found I can create these by specifying -N on the command line.
> This is on FreeBSD 2.1-STABLE, using the default (gcc) C compiler:
> 
> 	% cc -N hello.c
> 	% file a.out
> 	a.out: PDP-11 executable not stripped
> 	%
> 
> Apparently the compiler can create binary formats that the kernel does not
> support.  I couldn't find documentation on the -N switch.

So you might ask your doctor for some new glasses. :-))


LD(1)                      FreeBSD Reference Manual                      LD(1)

NAME
     ld - link editor

...
DESCRIPTION
     ld combines the object and archive files given on the command line into a
     new object file. The output object file is either an executable program,
...
     -N      Produce a OMAGIC output file.


-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)