Is this correct?:

$ cat nologin.S
.section .data
message:
   .ascii "This account is currently not available.\n\0"
.section .text
.globl _start
_start:
   movl $4, %eax
   movl $42, %edx
   movl $message, %ecx
   movl $1, %ebx
   int $0x80
   movl $1, %eax
   movl $1, %ebx
   int $0x80

$ as -o nologin.o nologin.S
$ ld -o nologin nologin.o
$ ./nologin ; echo $?
This account is currently not available.
1

I used a 'hello world' example :-) It's 380 bytes stripped.

robert

Attachment: pgpKfy8NR9nce.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to