Lines Matching defs:S

56 static uint64_t resolveX86_64(uint64_t Type, uint64_t Offset, uint64_t S,
64 return S + Addend;
67 return S + Addend - Offset;
70 return (S + Addend) & 0xFFFFFFFF;
89 static uint64_t resolveAArch64(uint64_t Type, uint64_t Offset, uint64_t S,
93 return (S + Addend) & 0xFFFFFFFF;
95 return S + Addend;
97 return (S + Addend - Offset) & 0xFFFF;
99 return (S + Addend - Offset) & 0xFFFFFFFF;
101 return S + Addend - Offset;
117 static uint64_t resolveBPF(uint64_t Type, uint64_t Offset, uint64_t S,
121 return (S + LocData) & 0xFFFFFFFF;
123 return S + LocData;
141 static uint64_t resolveMips64(uint64_t Type, uint64_t Offset, uint64_t S,
145 return (S + Addend) & 0xFFFFFFFF;
147 return S + Addend;
149 return S + Addend - 0x8000;
151 return S + Addend - Offset;
167 static uint64_t resolveMSP430(uint64_t Type, uint64_t Offset, uint64_t S,
171 return (S + Addend) & 0xFFFFFFFF;
173 return (S + Addend) & 0xFFFF;
191 static uint64_t resolvePPC64(uint64_t Type, uint64_t Offset, uint64_t S,
195 return (S + Addend) & 0xFFFFFFFF;
197 return S + Addend;
199 return (S + Addend - Offset) & 0xFFFFFFFF;
201 return S + Addend - Offset;
217 static uint64_t resolveSystemZ(uint64_t Type, uint64_t Offset, uint64_t S,
221 return (S + Addend) & 0xFFFFFFFF;
223 return S + Addend;
241 static uint64_t resolveSparc64(uint64_t Type, uint64_t Offset, uint64_t S,
248 return S + Addend;
277 static uint64_t resolveAmdgpu(uint64_t Type, uint64_t Offset, uint64_t S,
282 return S + Addend;
299 static uint64_t resolveX86(uint64_t Type, uint64_t Offset, uint64_t S,
305 return S + LocData;
307 return S - Offset + LocData;
323 static uint64_t resolvePPC32(uint64_t Type, uint64_t Offset, uint64_t S,
327 return (S + Addend) & 0xFFFFFFFF;
329 return (S + Addend - Offset) & 0xFFFFFFFF;
344 static uint64_t resolveARM(uint64_t Type, uint64_t Offset, uint64_t S,
353 return (S + LocData + Addend) & 0xFFFFFFFF;
355 return (S + LocData + Addend - Offset) & 0xFFFFFFFF;
370 static uint64_t resolveAVR(uint64_t Type, uint64_t Offset, uint64_t S,
374 return (S + Addend) & 0xFFFF;
376 return (S + Addend) & 0xFFFFFFFF;
386 static uint64_t resolveLanai(uint64_t Type, uint64_t Offset, uint64_t S,
389 return (S + Addend) & 0xFFFFFFFF;
403 static uint64_t resolveMips32(uint64_t Type, uint64_t Offset, uint64_t S,
407 return (S + LocData) & 0xFFFFFFFF;
409 return (S + LocData) & 0xFFFFFFFF;
423 static uint64_t resolveSparc32(uint64_t Type, uint64_t Offset, uint64_t S,
426 return S + Addend;
434 static uint64_t resolveHexagon(uint64_t Type, uint64_t Offset, uint64_t S,
437 return S + Addend;
466 static uint64_t resolveRISCV(uint64_t Type, uint64_t Offset, uint64_t S,
474 return (S + RA) & 0xFFFFFFFF;
476 return (S + RA - Offset) & 0xFFFFFFFF;
478 return S + RA;
480 return (A & 0xC0) | ((S + RA) & 0x3F);
482 return (A & 0xC0) | (((A & 0x3F) - (S + RA)) & 0x3F);
484 return (S + RA) & 0xFF;
486 return (A + (S + RA)) & 0xFF;
488 return (A - (S + RA)) & 0xFF;
490 return (S + RA) & 0xFFFF;
492 return (A + (S + RA)) & 0xFFFF;
494 return (A - (S + RA)) & 0xFFFF;
496 return (S + RA) & 0xFFFFFFFF;
498 return (A + (S + RA)) & 0xFFFFFFFF;
500 return (A - (S + RA)) & 0xFFFFFFFF;
502 return (A + (S + RA));
504 return (A - (S + RA));
521 static uint64_t resolveCSKY(uint64_t Type, uint64_t Offset, uint64_t S,
527 return (S + Addend) & 0xFFFFFFFF;
529 return (S + Addend - Offset) & 0xFFFFFFFF;
557 static uint64_t resolveLoongArch(uint64_t Type, uint64_t Offset, uint64_t S,
563 return (S + Addend) & 0xFFFFFFFF;
565 return (S + Addend - Offset) & 0xFFFFFFFF;
567 return S + Addend;
569 return (LocData & 0xC0) | ((LocData + S + Addend) & 0x3F);
571 return (LocData & 0xC0) | ((LocData - (S + Addend)) & 0x3F);
573 return (LocData + (S + Addend)) & 0xFF;
575 return (LocData - (S + Addend)) & 0xFF;
577 return (LocData + (S + Addend)) & 0xFFFF;
579 return (LocData - (S + Addend)) & 0xFFFF;
581 return (LocData + (S + Addend)) & 0xFFFFFFFF;
583 return (LocData - (S + Addend)) & 0xFFFFFFFF;
585 return (LocData + (S + Addend));
587 return (LocData - (S + Addend));
603 static uint64_t resolveCOFFX86(uint64_t Type, uint64_t Offset, uint64_t S,
608 return (S + LocData) & 0xFFFFFFFF;
624 static uint64_t resolveCOFFX86_64(uint64_t Type, uint64_t Offset, uint64_t S,
628 return (S + LocData) & 0xFFFFFFFF;
630 return S + LocData;
646 static uint64_t resolveCOFFARM(uint64_t Type, uint64_t Offset, uint64_t S,
651 return (S + LocData) & 0xFFFFFFFF;
667 static uint64_t resolveCOFFARM64(uint64_t Type, uint64_t Offset, uint64_t S,
671 return (S + LocData) & 0xFFFFFFFF;
673 return S + LocData;
683 static uint64_t resolveMachOX86_64(uint64_t Type, uint64_t Offset, uint64_t S,
686 return S;
726 static uint64_t resolveWasm32(uint64_t Type, uint64_t Offset, uint64_t S,
750 static uint64_t resolveWasm64(uint64_t Type, uint64_t Offset, uint64_t S,
762 return resolveWasm32(Type, Offset, S, LocData, Addend);
871 uint64_t S, uint64_t LocData) {
897 return Resolver(R.getType(), R.getOffset(), S, LocData, Addend);
902 // relocations and assumes that all of them have the same computation (S + A).
906 return Resolver(/*Type=*/0, /*Offset=*/0, S, LocData,