Lines Matching refs:Reloc
937 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local
939 Reloc.Type = type; in parseRelocSection()
940 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection()
941 if (Reloc.Offset < PreviousOffset) in parseRelocSection()
944 PreviousOffset = Reloc.Offset; in parseRelocSection()
945 Reloc.Index = readVaruint32(Ctx); in parseRelocSection()
954 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
959 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection()
964 if (Reloc.Index >= Signatures.size()) in parseRelocSection()
971 if (!isValidGlobalSymbol(Reloc.Index) && in parseRelocSection()
972 !isValidDataSymbol(Reloc.Index) && in parseRelocSection()
973 !isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
978 if (!isValidGlobalSymbol(Reloc.Index)) in parseRelocSection()
983 if (!isValidTagSymbol(Reloc.Index)) in parseRelocSection()
993 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
996 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1003 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
1006 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
1009 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
1012 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1015 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
1018 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
1021 if (!isValidSectionSymbol(Reloc.Index)) in parseRelocSection()
1024 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1036 if (Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LEB64 || in parseRelocSection()
1037 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_SLEB64 || in parseRelocSection()
1038 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_REL_SLEB64) in parseRelocSection()
1040 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I32 || in parseRelocSection()
1041 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I32 || in parseRelocSection()
1042 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LOCREL_I32 || in parseRelocSection()
1043 Reloc.Type == wasm::R_WASM_SECTION_OFFSET_I32 || in parseRelocSection()
1044 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I32 || in parseRelocSection()
1045 Reloc.Type == wasm::R_WASM_GLOBAL_INDEX_I32) in parseRelocSection()
1047 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I64 || in parseRelocSection()
1048 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I64 || in parseRelocSection()
1049 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I64) in parseRelocSection()
1051 if (Reloc.Offset + Size > EndOffset) in parseRelocSection()
1055 Section.Relocations.push_back(Reloc); in parseRelocSection()