Home
last modified time | relevance | path

Searched refs:rela (Results 1 – 7 of 7) sorted by relevance

/tools/objtool/
Dorc_gen.c89 struct rela *rela; in create_orc_entry() local
96 rela = malloc(sizeof(*rela)); in create_orc_entry()
97 if (!rela) { in create_orc_entry()
101 memset(rela, 0, sizeof(*rela)); in create_orc_entry()
104 rela->sym = insn_sec->sym; in create_orc_entry()
105 rela->addend = insn_off; in create_orc_entry()
111 rela->sym = find_symbol_containing(insn_sec, insn_off); in create_orc_entry()
112 if (!rela->sym) { in create_orc_entry()
117 rela->sym = find_symbol_containing(insn_sec, in create_orc_entry()
120 if (!rela->sym) { in create_orc_entry()
[all …]
Delf.c97 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset, in find_rela_by_dest_range()
100 struct rela *rela; in find_rela_by_dest_range() local
103 if (!sec->rela) in find_rela_by_dest_range()
107 hash_for_each_possible(sec->rela->rela_hash, rela, hash, o) in find_rela_by_dest_range()
108 if (rela->offset == o) in find_rela_by_dest_range()
109 return rela; in find_rela_by_dest_range()
114 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset) in find_rela_by_dest()
356 struct rela *rela; in read_relas() local
371 sec->base->rela = sec; in read_relas()
374 rela = malloc(sizeof(*rela)); in read_relas()
[all …]
Dcheck.c303 struct rela *rela; in add_dead_ends() local
322 list_for_each_entry(rela, &sec->rela_list, list) { in add_dead_ends()
323 if (rela->sym->type != STT_SECTION) { in add_dead_ends()
327 insn = find_insn(file, rela->sym->sec, rela->addend); in add_dead_ends()
330 else if (rela->addend == rela->sym->sec->len) { in add_dead_ends()
333 if (insn->sec == rela->sym->sec) { in add_dead_ends()
341 rela->sym->sec->name, rela->addend); in add_dead_ends()
346 rela->sym->sec->name, rela->addend); in add_dead_ends()
364 list_for_each_entry(rela, &sec->rela_list, list) { in add_dead_ends()
365 if (rela->sym->type != STT_SECTION) { in add_dead_ends()
[all …]
Delf.h33 struct section *base, *rela; member
56 struct rela { struct
59 GElf_Rela rela; argument
83 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset); argument
84 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset,
Dorc_dump.c73 GElf_Rela rela; in orc_dump() local
154 if (!gelf_getrela(rela_orc_ip, i, &rela)) { in orc_dump()
159 if (!gelf_getsym(symtab, GELF_R_SYM(rela.r_info), &sym)) { in orc_dump()
189 printf("%s+%llx:", name, (unsigned long long)rela.r_addend); in orc_dump()
Dcheck.h42 struct rela *jump_table;
Dspecial.c75 struct rela *orig_rela, *new_rela; in get_alt_entry()