# Ivan Novick # Dec-23, 2007 # # as -o symlink.o symlink.s # ld -o symlink symlink.o # # symlink -- linux system call #83 .section .data # constant to store a string linkname: .ascii "another.s\0" # constant to store a string original: .ascii "symlink.s\0" .section .text .globl _start _start: # 83 is the system call number for symlink # the first param is the original file name # the second param is the name of the symlink you want to create movl $83, %eax movl $original, %ebx movl $linkname, %ecx int $0x80 # exit system call movl $1, %eax movl $0, %ebx int $0x80