Skip to content

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

Open

Description

@theRookieCoder

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

Activity

  1. andrewboldi commented on Jan 5, 2021

    @andrewboldi

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

  2. Darkcast commented on Dec 7, 2021

    @Darkcast

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

  3. chamroeun-chh commented on Mar 31, 2023

    @chamroeun-chh

    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 $?
  4. changed the title [-]Command line errors[/-] [+]`ld: warning: option -m is obsolete and being ignored` on macOS[/+] on Mar 31, 2023
  5. theRookieCoder commented on Mar 31, 2023

    @theRookieCoder
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions