Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!news.sol.net!uwm.edu!news.moneng.mei.com!bloom-beacon.mit.edu!grapevine.lcs.mit.edu!newsie.dmc.com!news.zipnet.net!zip0.zipnet.net!not-for-mail From: radics@zipnet.net (Andras Radics) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: gcc and FreeBSD Date: 10 May 1996 17:08:56 -0400 Organization: ZipCall Internet Services (zipnet.net) Lines: 22 Message-ID: <4n0b98$o66@zip0.zipnet.net> References: <Y6nxBDAlWlhxEwlU@ruthless.demon.co.uk> <4mde0b$hqu@uriah.heep.sax.de> NNTP-Posting-Host: zip0.zipnet.net >>'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. (Under pre-ELF Linux, -N generates a compact, non demand-paged executable with no separate data and text pages and a short(er) exe header that still uses shared libs. It's great to see useful utilities compile down to 1500 bytes! :-) Andras -- /\ Andras Radics May the Source be with you. \/ radics@zipnet.net