Skip to content

ld: warning: option -m is obsolete and being ignored on macOS #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
theRookieCoder opened this issue Apr 9, 2020 · 4 comments
Open

Comments

@theRookieCoder
Copy link

theRookieCoder commented Apr 9, 2020

For ex1.asm, the instructions don't work with newer versions of ld as -m is obsolete.

@andrewboldi
Copy link

I also have the same error, did you find a solution?

@Darkcast
Copy link

Darkcast commented Dec 7, 2021

its a pain to try to do these in mac, try using a linux vm and they should work

@chamroeun-chh
Copy link

make sure the code is correct and running the command below:

  1. nasm -f elf32 .\instruction.asm -o .\instruction.o
  2. ld -m elf_i386 ex1.o -o ex1
  3. ./ex1
  4. echo $?

@theRookieCoder theRookieCoder changed the title Command line errors ld: warning: option -m is obsolete and being ignored on macOS Mar 31, 2023
@theRookieCoder
Copy link
Author

It's been years haha, but yeah I lost interest in assembly pretty quickly. I actually made a python script to compile assembly files using nasm and run it, but that has been deleted so I'm not sure what I did to make it work on macOS. I'll leave this open since this hasn't really been 'fixed' yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants