*BSD News Article 74285


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!news.uoregon.edu!arclight.uoregon.edu!news.sprintlink.net!news-stk-200.sprintlink.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GNU assembler
Date: 20 Jul 1996 13:58:49 GMT
Organization: Private BSD site, Dresden
Lines: 22
Message-ID: <4sqomp$4ae@uriah.heep.sax.de>
References: <31ED89D2.41C6@raleigh.ibm.com> <4sl7ik$53o@uriah.heep.sax.de>
  <4spib0$23u@anorak.coverform.lan>
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

brian@awfulhak.demon.co.uk (Brian Somers) wrote:

> : (I think the -e entry is not strictly necessary if your program cares
> : to jump into its entry point.  Mine doesn't, without the -e entry, the
> : "Hello world!\n" would have been executed as program code.)
> 
> The ld man page:
> CAVEATS
>      An entry point must now explicitly be given if the output is intended to
>      be a normal executable program. This was not the case for the previous
>      version of ld.

But i think that's for C programs.  I've re-assembled my demo, with a
"jmp entry" as the first instruction, and without the -e entry, and it
seems to work.

-- 
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. ;-)