flat assembler
Message board for the users of flat assembler.
Index
> Unix > FreeBSD 6.2 (AMD64) with fasm-1.67.23.tgz (segment fault) |
Author |
|
Patrick_ 24 Oct 2007, 23:14
I've got the same problem using NetBSD 4.0RC3.
|
|||
24 Oct 2007, 23:14 |
|
Chewy509 28 Oct 2007, 07:13
Getting the same on Sun Solaris Express (aka "SunOS Hellfire 5.11 snv_70b i86pc i386 i86pc")
Using: ~/cc -o fasm ./fasm/fasm.o fasm v1.64.21 links and runs fine. |
|||
28 Oct 2007, 07:13 |
|
xanatose 07 Nov 2007, 15:45
Im getting a
Segmentation fault: 11 Under FreeBSD, on a Pentium4. Using cc -o fasm fasm |
|||
07 Nov 2007, 15:45 |
|
xanatose 07 Nov 2007, 23:12
Found the error by looking at stdio.h of FreeBSD.
Instead of: Code: #define stdout 1 #define stderr 2 FreeBSD define this as: Code: #define stdout __stdoutp #define stderr __stderrp Both are declared as: Code: extern FILE * __stdoutp; extern FILE * __stderrp; Since 1 and 2 are invalid as pointers, it caused the Segmentation fault. By adding to system.inc Code: extrn __stdoutp extrn __stderrp And changing:on system.inc and fasm.asm Code: mov [con_handle], 1 To Code: push dword [__stdoutp] ; 32 bit pointer pop [con_handle] And Code: mov [con_handle], 2 To Code: push dword [__stderrp] ; 32 bit pointer pop [con_handle] It works on 32 bit FreeBSD 6.2 |
|||
07 Nov 2007, 23:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.