HelloSilicon icon indicating copy to clipboard operation
HelloSilicon copied to clipboard

can't use the command `objdump` command with no-aliases option

Open sangeui opened this issue 2 years ago • 3 comments

Hi, I'm really new to this row level world 🙏 and have an issue.

I'm not able to use the command with options, objdump -s -d -M no-aliases filename.o, and it says "Unrecognized disassembler option: no-aliases"

I don't know why, can't I use that option on m1?

thank you, in advance.

sangeui avatar Jan 24 '22 16:01 sangeui

This is strange. I am pretty certain I have used this option when writing this text. It seems unavailable with 13.2.1. I will investigate

below avatar Jan 25 '22 08:01 below

OK, it took me a while: What is missing is the -m switch, short for --macho: "Use MachO specific object file parser"

So objdump -s -m -d -M no-aliases arm64.o or objdump --macho --disassembler-options=no-aliases arm64.o will work (and of course, you can throw in -s or --full-info, too.

below avatar Jun 08 '22 20:06 below

This is strange: I just ran objdump -s -d -M no-aliases movexamps.o for the code in Chapter 2, and had no issues …

below avatar Jun 08 '22 20:06 below