flat assembler
Message board for the users of flat assembler.
Index
> Unix > fasm for NetBSD 3.1/i386 |
Author |
|
jb 17 Apr 2007, 05:54
This archive can be used to create a statically linked, libc-free version of fasm for NetBSD 3.1. This work is based on my earlier posts here.
Files fasm fasm/source fasm/source/NetBSD fasm/source/NetBSD/system.inc fasm/source/NetBSD/note.inc fasm/source/NetBSD/bsd.inc fasm/source/NetBSD/fasm.asm fasm/source/tables.inc fasm/source/formats.inc Bootstrap procedure #untar the Unix/libc fasm archive tar xzf fasm-1.67.tar.gz #untar the files listed above on top of this tree tar xzf fasm-netbsd-1.67.tar.gz cd fasm #regular libc fasm cc -o fasm1 fasm.o cd source/libc ../../fasm1 fasm.asm #libc fasm that can handle "segment note" #using modified files tables.inc, formats.inc cc -o fasm2 fasm.o cd ../NetBSD #libc-free NetBSD fasm ../libc/fasm2 fasm.asm fasm3 #check if it can reproduce itself chmod +x fasm3 ./fasm3 fasm.asm cmp fasm3 fasm && echo 'fasm ok' Additional tests Both libc/fasm.o and Linux/fasm can be reproduced, but only after replacing the backquotes using: perl -p -i -e 's,\\,/,' fasm.asm
|
|||||||||||
17 Apr 2007, 05:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.