From 7127cc4423c2aced697613bc7193d33078c1033b Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Mon, 2 Jun 2025 02:15:58 -0700 Subject: [PATCH] Remove -D flag from Buildroot disassembly to work around objdump crash on non-code regions that are not aligned --- linux/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/Makefile b/linux/Makefile index 58cb6c69b..5f6775bcd 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -100,8 +100,10 @@ $(DISASSEMBLY_DIR)/%.objdump: $(IMAGE_DIR)/% | $(DISASSEMBLY_DIR) $(WALLY)/bin/extractFunctionRadix.sh $@ # Disassemble binaries ending in .elf +# Add -D flag back to disassemble all sections (instead of just code sections) +# once objdump bug is fixed and the pinned version of the toolchain is updated. $(DISASSEMBLY_DIR)/%.objdump: $(IMAGE_DIR)/%.elf | $(DISASSEMBLY_DIR) - riscv64-unknown-elf-objdump -SD $< >> $@ + riscv64-unknown-elf-objdump -S $< >> $@ $(WALLY)/bin/extractFunctionRadix.sh $@ # Load wally buildroot configuration