freebsd asm

Peter Pentchev roam at
Mon Jun 14 14:04:34 GMT 2004

On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote:
> Hello to all,
> I'm proud to join this mailing, having posibilities to learn some new
> features of freebsd system.
> I have to mention i did some tests in asm from freebsd-devel and i get
> surprised, look at this:
> [demon]~$ uname -a
> FreeBSD 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4 #0:
> Tue Apr  6 19:35:49 CEST 2004
> root at  i386
> [demon]~$ cat hello.asm
> %include ''
> section .data
> hola    db      'Hola', 0Ah
> hbytes  equ     $-hola
> section .text
> global  _start
> _start:
> push    dword   hbytes
> push    dword   hola
> push    dword   stdout
> sys.write
> push    dword   0
> sys.exit
> [demon]~$ nasm -f elf hello.asm
> hello.asm:1: fatal: unable to open include file `'
> ?Where is that file?... the -current port of nasm is incomplete ?

I assume you are referring to the file mentioned in
If so, note that this page says that you need to create this file yourself,
it is neither part of nasm nor part of the standard FreeBSD distribution :)
See the last paragraph on the page - "Go ahead, enter it into your editor
and save it as" :)


Peter Pentchev	roam at    roam at    roam at
PGP key:
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-hackers mailing list