Lines Matching defs:rel
50 void relocate(uint8_t *loc, const Relocation &rel,
57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
58 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
59 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
60 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
322 void PPC::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
324 std::tie(newType, val) = fromDTPREL(rel.type, val);
327 checkIntUInt(ctx, loc, val, 16, rel);
335 checkInt(ctx, loc, val, 16, rel);
371 checkInt(ctx, loc, val, 16, rel);
372 checkAlignment(ctx, loc, val, 4, rel);
381 checkInt(ctx, loc, val, 26, rel);
382 checkAlignment(ctx, loc, val, 4, rel);
413 void PPC::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
415 switch (rel.type) {
432 void PPC::relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
434 switch (rel.type) {
448 void PPC::relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
450 switch (rel.type) {
465 relocate(loc, rel, val);
472 void PPC::relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
474 switch (rel.type) {
505 for (const Relocation &rel : sec.relocs()) {
506 uint8_t *loc = buf + rel.offset;
508 SignExtend64(sec.getRelocTargetVA(ctx, rel, secAddr + rel.offset), 32);
509 switch (rel.expr) {
511 relaxTlsGdToIe(loc, rel, val);
514 relaxTlsGdToLe(loc, rel, val);
517 relaxTlsLdToLe(loc, rel, val);
520 relaxTlsIeToLe(loc, rel, val);
523 relocate(loc, rel, val);