| /tools/objtool/include/objtool/ |
| A D | elf.h | 78 struct reloc { struct 204 return reloc - reloc->sec->relocs; in reloc_idx() 207 static inline void *reloc_rel(struct reloc *reloc) in reloc_rel() argument 214 static inline bool is_32bit_reloc(struct reloc *reloc) in is_32bit_reloc() argument 240 static inline u64 reloc_offset(struct reloc *reloc) in reloc_offset() argument 251 static inline s64 reloc_addend(struct reloc *reloc) in reloc_addend() argument 305 static inline bool is_jump_table(struct reloc *reloc) in is_jump_table() argument 310 static inline void set_jump_table(struct reloc *reloc) in set_jump_table() argument 315 static inline struct reloc *sym_next_reloc(struct reloc *reloc) in sym_next_reloc() argument 320 static inline void set_sym_next_reloc(struct reloc *reloc, struct reloc *next) in set_sym_next_reloc() argument [all …]
|
| A D | arch.h | 99 bool arch_pc_relative_reloc(struct reloc *reloc); 101 unsigned int arch_reloc_size(struct reloc *reloc); 102 unsigned long arch_jump_table_sym_offset(struct reloc *reloc, struct reloc *table);
|
| A D | special.h | 37 struct reloc *reloc); 38 struct reloc *arch_find_switch_table(struct objtool_file *file,
|
| A D | check.h | 76 struct reloc *_jump_table;
|
| /tools/objtool/arch/loongarch/ |
| A D | special.c | 8 struct reloc *reloc) in arch_support_alt_relocation() argument 24 struct reloc *reloc; in get_rodata_table_size_by_table_annotate() local 51 orig_table->insn_offset = reloc->sym->offset + reloc_addend(reloc); in get_rodata_table_size_by_table_annotate() 52 reloc++; in get_rodata_table_size_by_table_annotate() 53 orig_table->rodata_offset = reloc->sym->offset + reloc_addend(reloc); in get_rodata_table_size_by_table_annotate() 117 struct reloc *reloc; in find_reloc_by_table_annotate() local 131 offset = reloc->sym->offset + reloc_addend(reloc); in find_reloc_by_table_annotate() 134 reloc++; in find_reloc_by_table_annotate() 135 return reloc; in find_reloc_by_table_annotate() 147 struct reloc *reloc; in find_reloc_of_rodata_c_jump_table() local [all …]
|
| A D | decode.c | 25 bool arch_pc_relative_reloc(struct reloc *reloc) in arch_pc_relative_reloc() argument 368 unsigned int arch_reloc_size(struct reloc *reloc) in arch_reloc_size() argument 370 switch (reloc_type(reloc)) { in arch_reloc_size() 379 unsigned long arch_jump_table_sym_offset(struct reloc *reloc, struct reloc *table) in arch_jump_table_sym_offset() argument 381 switch (reloc_type(reloc)) { in arch_jump_table_sym_offset() 384 return reloc->sym->offset + reloc_addend(reloc) - in arch_jump_table_sym_offset() 385 (reloc_offset(reloc) - reloc_offset(table)); in arch_jump_table_sym_offset() 387 return reloc->sym->offset + reloc_addend(reloc); in arch_jump_table_sym_offset()
|
| /tools/objtool/arch/powerpc/ |
| A D | special.c | 10 struct reloc *reloc) in arch_support_alt_relocation() argument 15 struct reloc *arch_find_switch_table(struct objtool_file *file, in arch_find_switch_table()
|
| A D | decode.c | 91 bool arch_pc_relative_reloc(struct reloc *reloc) in arch_pc_relative_reloc() argument 118 unsigned int arch_reloc_size(struct reloc *reloc) in arch_reloc_size() argument 120 switch (reloc_type(reloc)) { in arch_reloc_size()
|
| /tools/objtool/ |
| A D | elf.c | 274 struct reloc *reloc, *r = NULL; in find_reloc_by_dest_range() local 283 elf_hash_for_each_possible(reloc, reloc, hash, in find_reloc_by_dest_range() 291 r = reloc; in find_reloc_by_dest_range() 608 struct reloc *reloc; in elf_update_sym_relocs() local 610 for (reloc = sym->relocs; reloc; reloc = sym_next_reloc(reloc)) in elf_update_sym_relocs() 611 set_reloc_sym(elf, reloc, reloc->sym->idx); in elf_update_sym_relocs() 887 struct reloc *reloc, empty = { 0 }; in elf_init_reloc() local 911 elf_hash_add(reloc, &reloc->hash, reloc_hash(reloc)); in elf_init_reloc() 915 return reloc; in elf_init_reloc() 969 struct reloc *reloc; in read_relocs() local [all …]
|
| A D | check.c | 551 struct reloc *reloc; in add_pv_ops() local 930 struct reloc *reloc; in create_mcount_loc_sections() local 991 struct reloc *reloc; in add_ignores() local 1259 struct reloc *reloc; in insn_reloc() local 1484 struct reloc *reloc; in add_jump_destinations() local 1647 struct reloc *reloc; in add_call_destinations() local 2199 struct reloc *reloc; in read_unwind_hints() local 2300 struct reloc *reloc; in read_annotate() local 3329 struct reloc *reloc; in call_dest_name() local 3348 struct reloc *reloc; in pv_call_dest() local [all …]
|
| A D | special.c | 61 static void reloc_to_sec_off(struct reloc *reloc, struct section **sec, in reloc_to_sec_off() argument 64 *sec = reloc->sym->sec; in reloc_to_sec_off() 65 *off = reloc->sym->offset + reloc_addend(reloc); in reloc_to_sec_off() 72 struct reloc *orig_reloc, *new_reloc; in get_alt_entry() 112 struct reloc *key_reloc; in get_alt_entry()
|
| /tools/objtool/arch/x86/ |
| A D | special.c | 36 struct reloc *reloc) in arch_support_alt_relocation() argument 81 struct reloc *arch_find_switch_table(struct objtool_file *file, in arch_find_switch_table() 85 struct reloc *text_reloc, *rodata_reloc; in arch_find_switch_table()
|
| A D | decode.c | 81 bool arch_pc_relative_reloc(struct reloc *reloc) in arch_pc_relative_reloc() argument 87 switch (reloc_type(reloc)) { in arch_pc_relative_reloc() 645 struct reloc *immr, *disp; in arch_decode_instruction() 871 unsigned int arch_reloc_size(struct reloc *reloc) in arch_reloc_size() argument 873 switch (reloc_type(reloc)) { in arch_reloc_size()
|
| /tools/perf/util/ |
| A D | map.h | 30 u64 reloc; in DECLARE_RC_STRUCT() local 69 return RC_CHK_ACCESS(map)->reloc; in map__reloc() 285 static inline void map__set_reloc(struct map *map, u64 reloc) in map__set_reloc() argument 287 RC_CHK_ACCESS(map)->reloc = reloc; in map__set_reloc()
|
| A D | probe-event.c | 138 bool reloc, bool reladdr) in kernel_get_symbol_address_by_name() argument 147 *addr = (!map__reloc(map) || reloc) ? reloc_sym->addr : in kernel_get_symbol_address_by_name() 154 ((reloc) ? 0 : map__reloc(map)) - in kernel_get_symbol_address_by_name()
|
| /tools/testing/selftests/bpf/ |
| A D | README.rst | 312 Clang 13 patch `clang reloc patch`_ made some changes on relocations such 315 See `kernel llvm reloc`_ for more explanation and some examples. 325 .. _clang reloc patch: https://github.com/llvm/llvm-project/commit/6a2ea84600ba4bd3b2733bd8f08f5115… 326 .. _kernel llvm reloc: /Documentation/bpf/llvm_reloc.rst
|