https://github.com/riscv/riscv-elf-psabi-doc/pull/190 introduced STO_RISCV_VARIANT_CC.
The linker should do:
- Copy the STO_RISCV_VARIANT_CC bit to .symtab/.dynsym: already fulfilled after 82ed93ea0552c8f82df05859ee93e70b71c4e65d
- Produce DT_RISCV_VARIANT_CC if at least one R_RISCV_JUMP_SLOT relocation references a symbol with the STO_RISCV_VARIANT_CC bit. Done by this patch.
clang-tidy: error: use of undeclared identifier 'STO_RISCV_VARIANT_CC' [clang-diagnostic-error]
not useful