Re: Mac OS X / FreeBSD ASM Resources



Frank Kotler wrote:

You'll be using "-f macho" instead of "-f elf" for Mac OSX, if you're using Nasm. One minor difference I'm aware of - "-f elf" allows arbitrary section names, "-f macho" knows only .text, .data, and .bss. Shouldn't be a problem.


For what it's worth, we really need a MacOS X/Mach-O backend maintainer for NASM. If anyone on the list is interested, please holler...

-hpa

.



Relevant Pages

  • Re: ___divdi3 and ___moddi3
    ... NASM can easily ... > binaries in ELF format. ... I somewhat doubt that --- the binaries that Grub is best trained to ... The divdi3 and moddi3 are the intrinsic functions used by GCC to ...
    (comp.os.msdos.djgpp)
  • Re: Rapport from installation of Ubuntu 7.10 on amd64
    ... specifically for the -f elf option, ... recently corrected so MapAndLoad will MapAndLoad ..exes made in this way ... but I think my time is better spent on other NASM ... Macros exist, if you don't want the "clutter" in your source. ...
    (alt.lang.asm)
  • Re: NASM to compile for 64bit AMD
    ... I just got a new 64-bit computer and I'm working on moving my project witch includes an Assembly library here. ... When I try to compile the Assembly library with nasm everything is fine. ... If I've understood correct elf is a 32-bit thing. ...
    (comp.lang.asm.x86)
  • Re: NASM using ORG Statement
    ... i can assemble successfully direct binary file out of nasm ... > nasm -f bin PMode.asm, ... > nasm -f elf PMode.asm is failing. ... Getting "org" and "extern" into the same format is going to ...
    (comp.lang.asm.x86)
  • Re: Rapport from installation of Ubuntu 7.10 on amd64
    ... Frank Kotler wrote: ... the most important command was "nasm -f elf ...", ... Having seen the "-f elf" in the first line, ...
    (alt.lang.asm)