Warning, /include/llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def is written in an unsupported language. File is not indexed.
0001 //===--- RISC-V Nonstandard Relocation List ---------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008
0009 #ifndef ELF_RISCV_NONSTANDARD_RELOC
0010 #error "ELF_RISCV_NONSTANDARD_RELOC must be defined"
0011 #endif
0012
0013 // ELF_RISCV_NONSTANDARD_RELOC(VENDOR, NAME, ID) defines information about
0014 // nonstandard relocation codes. This can be used when parsing relocations, or
0015 // when printing them, to provide better information.
0016 //
0017 // VENDOR should be the symbol name expected in the associated `R_RISCV_VENDOR`
0018 // relocation. NAME and ID work like `ELF_RELOC` but the mapping is not expected
0019 // to be 1:1.
0020 //
0021 // The mapping in RISCV.def is 1:1, and should be used when the only information
0022 // available is the relocation enum value.
0023
0024 // Qualcomm Nonstandard Relocations
0025 ELF_RISCV_NONSTANDARD_RELOC(QUALCOMM, R_RISCV_QC_ABS20_U, 192)
0026 ELF_RISCV_NONSTANDARD_RELOC(QUALCOMM, R_RISCV_QC_E_BRANCH, 193)
0027 ELF_RISCV_NONSTANDARD_RELOC(QUALCOMM, R_RISCV_QC_E_32, 194)
0028 ELF_RISCV_NONSTANDARD_RELOC(QUALCOMM, R_RISCV_QC_E_JUMP_PLT, 195)