X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Martin Str|mberg Subject: Re: Link Problem Newsgroups: comp.os.msdos.djgpp References: User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha)) Message-ID: <1019846355.834670@queeg.ludd.luth.se> Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: 26 Apr 2002 18:39:15 GMT Lines: 29 NNTP-Posting-Date: 26 Apr 2002 18:39:15 GMT NNTP-Posting-Host: queeg.ludd.luth.se X-Trace: 1019846355 news.luth.se 284 130.240.16.109 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jacky Luk wrote: : I have written a small NASM programs to test the assembler's capability as : follows: : section .text : start..; : mov ah,4ch : int 21h : but how come it does not link in? : I have assembled it with nasm -f coff -o 1.o 1.asm : The Error Message is : D:\DOWNLOAD\NASM>ld -o 1.exe 1.o : e:/djgpp/bin/ld.exe: warning: cannot find entry symbol start; defaulting to : 0000 : 18a8 1. It's a warning. So I think it did link. 2. I'm not an nasm expert, but are you sure that "start.." is a global symbol? 3. int won't probably do what you think if you're using DJGPP's ld without some lowlevel switches (like -Ttext=0x0). You're in protected mode. Right, MartinS