Lines Matching refs:Reloc
952 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local
954 Reloc.Type = type; in parseRelocSection()
955 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection()
956 if (Reloc.Offset < PreviousOffset) in parseRelocSection()
959 PreviousOffset = Reloc.Offset; in parseRelocSection()
960 Reloc.Index = readVaruint32(Ctx); in parseRelocSection()
970 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
975 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection()
980 if (Reloc.Index >= Signatures.size()) in parseRelocSection()
987 if (!isValidGlobalSymbol(Reloc.Index) && in parseRelocSection()
988 !isValidDataSymbol(Reloc.Index) && in parseRelocSection()
989 !isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
994 if (!isValidGlobalSymbol(Reloc.Index)) in parseRelocSection()
999 if (!isValidTagSymbol(Reloc.Index)) in parseRelocSection()
1009 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
1012 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1019 if (!isValidDataSymbol(Reloc.Index)) in parseRelocSection()
1022 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
1025 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
1028 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1031 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
1034 Reloc.Addend = readVarint64(Ctx); in parseRelocSection()
1037 if (!isValidSectionSymbol(Reloc.Index)) in parseRelocSection()
1040 Reloc.Addend = readVarint32(Ctx); in parseRelocSection()
1052 if (Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LEB64 || in parseRelocSection()
1053 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_SLEB64 || in parseRelocSection()
1054 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_REL_SLEB64) in parseRelocSection()
1056 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I32 || in parseRelocSection()
1057 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I32 || in parseRelocSection()
1058 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_LOCREL_I32 || in parseRelocSection()
1059 Reloc.Type == wasm::R_WASM_SECTION_OFFSET_I32 || in parseRelocSection()
1060 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I32 || in parseRelocSection()
1061 Reloc.Type == wasm::R_WASM_FUNCTION_INDEX_I32 || in parseRelocSection()
1062 Reloc.Type == wasm::R_WASM_GLOBAL_INDEX_I32) in parseRelocSection()
1064 if (Reloc.Type == wasm::R_WASM_TABLE_INDEX_I64 || in parseRelocSection()
1065 Reloc.Type == wasm::R_WASM_MEMORY_ADDR_I64 || in parseRelocSection()
1066 Reloc.Type == wasm::R_WASM_FUNCTION_OFFSET_I64) in parseRelocSection()
1068 if (Reloc.Offset + Size > EndOffset) in parseRelocSection()
1072 Section.Relocations.push_back(Reloc); in parseRelocSection()