[apps] Use GCC's `objdump` binary for LLVM
@@ -39,13 +39,14 @@ ifeq ($(COMPILER),gcc)
RISCV_PREFIX ?= $(GCC_INSTALL_DIR)/bin/$(RISCV_TARGET)-
RISCV_CC ?= $(RISCV_PREFIX)gcc
RISCV_CXX ?= $(RISCV_PREFIX)g++
+ RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump
else
# Use LLVM by default
RISCV_PREFIX ?= $(LLVM_INSTALL_DIR)/bin/llvm-
RISCV_CC ?= $(LLVM_INSTALL_DIR)/bin/clang
RISCV_CXX ?= $(LLVM_INSTALL_DIR)/bin/clang++
+ RISCV_OBJDUMP ?= $(GCC_INSTALL_DIR)/bin/$(RISCV_TARGET)-objdump
endif
-RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump
RISCV_OBJCOPY ?= $(RISCV_PREFIX)objcopy
RISCV_AS ?= $(RISCV_PREFIX)as
RISCV_AR ?= $(RISCV_PREFIX)ar
@@ -74,7 +75,7 @@ RISCV_LDFLAGS ?= -static -nostartfiles -lm -lgcc $(RISCV_FLAGS)
ifeq ($(COMPILER),gcc)
RISCV_OBJDUMP_FLAGS ?=
else
- RISCV_OBJDUMP_FLAGS ?= --triple=$(RISCV_TARGET) --mcpu=generic-rv32 -mattr=m,a
+ RISCV_OBJDUMP_FLAGS ?=
endif
RUNTIME ?= common/crt0.S.o common/printf.c.o common/string.c.o common/synchronization.c.o common/serial.c.o common/arch.ld
