openssl and coreutils and more

Robert Connolly robert at linuxfromscratch.org
Tue Dec 5 04:15:34 PST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20061205/b835bdf7/attachment.sig>


More information about the hlfs-dev mailing list