flat assembler
Message board for the users of flat assembler.
Index
> Unix > How to build current FASM on MacOS? |
Author |
|
TmX 21 Feb 2021, 13:39
I used fasm-1.73.27.tar.gz as starting point.
First, built objconv found at here Then grab FASM. Convert the object file: Code: ./objconv -fmacho -nu fasm.o fasm.obj Quote: Input file: fasm.o, output file: fasm.obj Last part: link with gcc Code:
gcc fasm.obj -o fasm I got this: Quote:
For those who are not familiar with MacOS: Quote: starting with macOS Catalina, 32-bit apps are no longer compatible with macOS Any help? |
|||
21 Feb 2021, 13:39 |
|
revolution 21 Feb 2021, 15:18
You can make a 64-bit compatible binary here:
https://board.flatassembler.net/topic.php?t=19593 |
|||
21 Feb 2021, 15:18 |
|
Tomasz Grysztar 21 Feb 2021, 16:10
If you start with fasmg (which comes with a 64-bit Mach-O executable in the official package), you might be able to use its Mach-O formatter and make fasm.x64 in Mach-O format instead of ELF (similarly to what jacobly did for fasmg).
|
|||
21 Feb 2021, 16:10 |
|
TmX 06 Jan 2022, 05:44
Tomasz Grysztar wrote: If you start with fasmg (which comes with a 64-bit Mach-O executable in the official package), you might be able to use its Mach-O formatter and make fasm.x64 in Mach-O format instead of ELF (similarly to what jacobly did for fasmg). Sorry for very late reply. OK, just noticed there's fasmg for 64-bit MacOS Next step, I assume, is to modify Linux fasm's code and then assemble it with fasmg? |
|||
06 Jan 2022, 05:44 |
|
ford 15 Mar 2022, 17:35
Tomasz Grysztar wrote: If you start with fasmg (which comes with a 64-bit Mach-O executable in the official package), you might be able to use its Mach-O formatter and make fasm.x64 in Mach-O format instead of ELF (similarly to what jacobly did for fasmg). Would there be any hope for FASM on M1 without Rosetta2? _________________ Everything is absurd. |
|||
15 Mar 2022, 17:35 |
|
int3h 19 May 2024, 11:30
I saw fasm for ARM and I thought since Apple Silicon is ARM it is supported. But I don't see macOS listed there. So I am wondering if it is supported. A bit new to writing assembly. I am more familiar with reading assembly by disassembling mostly. I understand that we need to invoke os though sys calls and such.
|
|||
19 May 2024, 11:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.