Skip to content

llvm-objdump command is not installed during Install development tools step #45

@aliparlakci

Description

@aliparlakci

In section Your first kernel debugging, the book runs the following command:

llvm-objdump -d kernel.elf

However, llvm-objdump is not installed and the book does not tell how to.

In MacOS, gobjdump should be used. It is installed as part of brew install binutils. Unfortunately, brew does not create a soft link of the binary inside the default binary path (/opt/homebrew/bin). You should run:

$ cd /opt/homebrew/bin
$ ls -l ../Cellar/binutils/<version>/bin/gobjdump
$ link ../Cellar/binutils/<version>/bin/gobjdump  gobjdump

Thanks to Steve Lau

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions