binutils Newspaper
OCTOBER 6, 2026
binutils — Proposed

Fix non-ASCII string in LoongArch disassembler

Removes non-ASCII characters from comments in the LoongArch disassembler source code.

This patch addresses an issue reported by xgettext regarding non-ASCII characters in the LoongArch disassembler’s source code. Specifically, it fixes two non-ASCII ’-’ characters within comments in the loongarch-dis.c file to ensure proper handling by internationalization tools.

In Details

This patch cleans up comments in opcodes/loongarch-dis.c by replacing non-ASCII hyphens with standard ASCII hyphens. The motivation is to resolve issues with xgettext, a tool used for extracting translatable strings. The affected comments describe the layout of the dbar instruction's annotation field.

For Context
xgettext
A command-line utility that extracts translatable strings from source code files, used in the GNU gettext framework for internationalization.
LoongArch
An instruction set architecture (ISA) developed by Loongson Technology, primarily for use in China.
disassembler
A program that translates machine code (binary instructions) back into a human-readable assembly language format.
dbar
Likely refers to a specific instruction or a type of barrier in the LoongArch architecture, possibly related to memory ordering or synchronization.
annotate
To add explanatory notes or comments to code or data.
Filed Under: patchbinutilsloongarchinternationalizationi18n