Skip to content

Commit

Permalink
Update rule for the label value for handling zero value
Browse files Browse the repository at this point in the history
Use zero-filled value if remain bits is less than 20 bits
  • Loading branch information
kito-cheng committed Oct 14, 2024
1 parent b1a2dde commit b523e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions riscv-elf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1623,9 +1623,9 @@ defined in the _Itanium {Cpp} ABI_.
The label value is derived from the lower 20 bits of the MD5 hash result of the
function signature string. If the lower 20 bits are all zeros, use the next
20 bits, and continue using the next 20 bits until a non-zero value is obtained.
If less than 20 bits are available in the final segment, the highest 20 bits of
the MD5 hash result will be used. If all 128 bits are zeros, the lower 20 bits
of the MD5 hash result of the string "RISC-V" are used.
If less than 20 bits are available in the final segment, the remaining bits
will be zero-filled to make up 20 bits. If all 128 bits are zeros, the lower
20 bits of the MD5 hash result of the string "RISC-V" are used.

Additionally, here are a few specific rules:

Expand Down

0 comments on commit b523e16

Please sign in to comment.