Thread: NASM help

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by MK27 View Post
    Hmm, but then aren't you creating a 64-bit executable? I dunno if that matters, but try it without the "64" using the ld flag Fordy recommends and see what happens.

    Actually I think that flag should be "-m elf_i386" but if you put -m in there and it doesn't recognized the arg it will say:

    root~»ld -m satan
    ld: unrecognised emulation mode: satan
    Supported emulations: elf_x86_64 elf_i386 i386linux elf_l1om
    That's what you get when you try to remember compiler flags from memory!

    Either way, you should be able to assemble 32 or 64 bit code with nasm and "ld" is such an impressive linker that you can link together more than you can ever need if you refer to the docs

  2. #17
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    As for the AT&T syntax conundrum there are ways to get NASM to use Intel syntax. I know I did it way back when so perhaps Googling it will give you some answers. I know it is possible but I do not remember what I did.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compiling assembly in linux with nasm
    By nano78 in forum Linux Programming
    Replies: 1
    Last Post: 10-09-2009, 09:10 PM
  2. Replies: 3
    Last Post: 04-26-2009, 05:59 AM
  3. Nasm
    By audinue in forum Tech Board
    Replies: 3
    Last Post: 01-13-2009, 02:07 PM
  4. Help getting NASM-IDE working
    By curlious in forum Tech Board
    Replies: 2
    Last Post: 11-17-2003, 08:15 AM
  5. More with NASM
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 11-13-2003, 05:28 PM