Skip to content

Commit 41827da

Browse files
committed
riscv-elf: Rework specifying when STO_RISCV_VARIANT_CC is needed
This new text both captures using registers with a specific purpose in the ABI (like SP) and also avoids creating incompatibilities with glibc's LD_AUDIT by being more general, as discussed on libc-alpha.
1 parent 8ad4cdd commit 41827da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

riscv-elf.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ table (GOT) for non-local symbol addresses.
112112

113113
== Dynamic Linking
114114

115-
Run-time linkers that use lazy binding must preserve all argument registers
116-
used in the standard calling convention for the ABI in use. Any functions that
117-
use additional argument registers must be annotated with
115+
Any functions that use registers in a way that is incompatible with
116+
the register convention of the ABI in use must be annotated with
118117
`STO_RISCV_VARIANT_CC`, as defined in <<Symbol Table>>.
119118

120119
NOTE: Vector registers have a variable size depending on the hardware

0 commit comments

Comments
 (0)