Skip to content

Commit 1f96d3e

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 b857952 commit 1f96d3e

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
@@ -1633,9 +1633,9 @@ defined in the _Itanium {Cpp} ABI_.
16331633
The label value is derived from the lower 20 bits of the MD5 hash result of the
16341634
function signature string. If the lower 20 bits are all zeros, use the next
16351635
20 bits, and continue using the next 20 bits until a non-zero value is obtained.
1636-
If less than 20 bits are available in the final segment, the highest 20 bits of
1637-
the MD5 hash result will be used. If all 128 bits are zeros, the lower 20 bits
1638-
of the MD5 hash result of the string "RISC-V" are used.
1636+
If less than 20 bits are available in the final segment, the remaining bits
1637+
will be zero-filled to make up 20 bits. If all 128 bits are zeros, the lower
1638+
20 bits of the MD5 hash result of the string "RISC-V" are used.
16391639

16401640
Additionally, here are a few specific rules:
16411641

0 commit comments

Comments
 (0)