Lines Matching refs:Reloc

857     wasm::WasmRelocation Reloc = {};  in parseRelocSection()  local
859 Reloc.Type = type; in parseRelocSection()
860 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection()
861 if (Reloc.Offset < PreviousOffset) in parseRelocSection()
864 PreviousOffset = Reloc.Offset; in parseRelocSection()
865 Reloc.Index = readVaruint32(Ctx); in parseRelocSection()
874 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
879 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection()
884 if (Reloc.Index >= Signatures.size()) in parseRelocSection()
891 if (!isValidGlobalSymbol(Reloc.Index) && in parseRelocSection()
892 !isValidDataSymbol(Reloc.Index) && in parseRelocSection()
893 !isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
898 if (!isValidGlobalSymbol(Reloc.Index)) in parseRelocSection()
903 if (!isValidTagSymbol(Reloc.Index)) in parseRelocSection()
913 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
916 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
923 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
926 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
929 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
932 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
935 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
938 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
941 if (!isValidSectionSymbol(Reloc.Index)) in parseRelocSection()
944 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
956 if (Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LEB64 || in parseRelocSection()
957 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_SLEB64 || in parseRelocSection()
958 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_REL_SLEB64) in parseRelocSection()
960 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I32 || in parseRelocSection()
961 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I32 || in parseRelocSection()
962 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LOCREL_I32 || in parseRelocSection()
963 Reloc.Type == wasm::R_WASM_SECTION_OFFSET_I32 || in parseRelocSection()
964 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I32 || in parseRelocSection()
965 Reloc.Type == wasm::R_WASM_GLOBAL_INDEX_I32) in parseRelocSection()
967 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I64 || in parseRelocSection()
968 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I64 || in parseRelocSection()
969 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I64) in parseRelocSection()
971 if (Reloc.Offset + Size > EndOffset) in parseRelocSection()
975 Section.Relocations.push_back(Reloc); in parseRelocSection()