Issue 251013.1: Standardize LEB terminology

Author: Ron Brender
Champion:
Date submitted: 2025-10-13
Date revised:
Date closed: 2025-10-27
Type: Editorial
Status: Accepted with change
DWARF version: 6

BACKGROUND

Consider the following data regarding the use of "[un]signed LEB128" vs "[S|U]LEB128" and friends in DWARF V5.

Text # of Occurences
signed LEB128 101
unsigned LEB128 84
SLEB128 11
ULEB128 56
SLEB 1
ULEB 9
LEB 5

These data slightly overcount the occurences because they use the LaTeX sources for the document, which includes some occurences in command definitions and other non-visible text. But I am sure they are representative nonetheless.

As can be seen, "signed LEB128" and "unsigned LEB128" are much more common than than "SLEB128" and "ULEB128", but both are common. The shortest forms, "SLEB" and "ULEB", occur rarely but do occur. (Perhaps clerical errors born of wishful thinking.) This leads to the following proposal.

PROPOSAL

Standardize on the forms "SLEB" and "ULEB" throughout the document. Other forms should occur only in the context of defining this notation.

Because there is only one size of encoding, allowing up to 128 bits, inclusion of "128" in these names is redundant and unnecessary. Further, the more compact form, eg, SLEB, is preferred to the longer form, in this case signed LEB, simply becasue it is more compact.

It is impractical to show all of the individual changes that this proposal would induce. Following are a few selections for illustration.


2025-10-27: Accepted, with editorial change. Remove reference to Table 7.7 from the paragraph about signed LEB128.