Skip to content

Commit b523e16

Browse files
committed
Update rule for the label value for handling zero value
Use zero-filled value if remain bits is less than 20 bits
1 parent b1a2dde commit b523e16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

riscv-elf.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,9 +1623,9 @@ defined in the _Itanium {Cpp} ABI_.
16231623
The label value is derived from the lower 20 bits of the MD5 hash result of the
16241624
function signature string. If the lower 20 bits are all zeros, use the next
16251625
20 bits, and continue using the next 20 bits until a non-zero value is obtained.
1626-
If less than 20 bits are available in the final segment, the highest 20 bits of
1627-
the MD5 hash result will be used. If all 128 bits are zeros, the lower 20 bits
1628-
of the MD5 hash result of the string "RISC-V" are used.
1626+
If less than 20 bits are available in the final segment, the remaining bits
1627+
will be zero-filled to make up 20 bits. If all 128 bits are zeros, the lower
1628+
20 bits of the MD5 hash result of the string "RISC-V" are used.
16291629

16301630
Additionally, here are a few specific rules:
16311631

0 commit comments

Comments
 (0)