binutils Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
objdump

Add LoongArch annotate option for objdump

Adds a new objdump option for LoongArch to display annotations for dbar instructions.

A new option, objdump -dM annotate, has been added for the LoongArch architecture. This option enables objdump to display disassembly along with annotations for dbar instructions, providing more detailed information about their usage and operands.

In Details

This commit introduces a new disassembly annotation mode for LoongArch architecture in objdump. The annotate mode, triggered by -M annotate, specifically decodes and annotates the dbar (Data Cache Block Address Range Invalidate) instruction. This feature is implemented by adding new test cases and modifying the loongarch-dis.c file in opcodes to handle the display of these annotations, likely by enriching the standard disassembly output with semantic information about the instruction's arguments.

For Context
LoongArch
An open-source instruction set architecture developed by Loongson Technology.
objdump
A utility in the GNU Binutils package that displays information from object files, including disassembled code.
dbar
Data Cache Block Address Range Invalidate. A LoongArch instruction used for cache coherency operations.
disassembly
The process of converting machine code back into human-readable assembly language.
annotations
Additional explanatory information appended to disassembly, providing context or details about instructions that are not directly apparent from the mnemonic itself.
Filed Under: objdumploongarchdisassemblynew feature