Lines Matching defs:rel

37   void relocate(uint8_t *loc, const Relocation &rel,
44 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
45 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
46 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
47 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
288 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
289 switch (rel.type) {
294 checkIntUInt(ctx, loc, val, 8, rel);
298 checkInt(ctx, loc, val, 8, rel);
302 checkIntUInt(ctx, loc, val, 16, rel);
316 checkInt(ctx, loc, val, 17, rel);
340 checkInt(ctx, loc, val, 32, rel);
352 void X86::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
354 if (rel.type == R_386_TLS_GD) {
369 } else if (rel.type == R_386_TLS_GOTDESC) {
383 assert(rel.type == R_386_TLS_DESC_CALL);
389 void X86::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
391 if (rel.type == R_386_TLS_GD) {
405 } else if (rel.type == R_386_TLS_GOTDESC) {
417 assert(rel.type == R_386_TLS_DESC_CALL);
425 void X86::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
433 if (rel.type == R_386_TLS_IE) {
449 assert(rel.type == R_386_TLS_GOTIE);
463 void X86::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
465 if (rel.type == R_386_TLS_LDO_32) {
499 for (const Relocation &rel : sec.relocs()) {
500 uint8_t *loc = buf + rel.offset;
502 SignExtend64(sec.getRelocTargetVA(ctx, rel, secAddr + rel.offset), 32);
503 switch (rel.expr) {
505 relaxTlsGdToIe(loc, rel, val);
509 relaxTlsGdToLe(loc, rel, val);
512 relaxTlsLdToLe(loc, rel, val);
515 relaxTlsIeToLe(loc, rel, val);
518 relocate(loc, rel, val);