/xen/xen/common/libelf/ |
A D | libelf-tools.c | 22 void elf_mark_broken(struct elf_binary *elf, const char *msg) in elf_mark_broken() 28 const char *elf_check_broken(const struct elf_binary *elf) in elf_check_broken() 55 bool elf_access_ok(struct elf_binary * elf, in elf_access_ok() 68 void elf_memcpy_safe(struct elf_binary *elf, elf_ptrval dst, in elf_memcpy_safe() 89 uint64_t elf_access_unsigned(struct elf_binary * elf, elf_ptrval base, in elf_access_unsigned() 121 uint64_t elf_round_up(struct elf_binary *elf, uint64_t addr) in elf_round_up() 130 unsigned elf_shdr_count(struct elf_binary *elf) in elf_shdr_count() 145 unsigned elf_phdr_count(struct elf_binary *elf) in elf_phdr_count() 198 const char *elf_section_name(struct elf_binary *elf, in elf_section_name() 207 const char *elf_strval(struct elf_binary *elf, elf_ptrval start) in elf_strval() [all …]
|
A D | libelf-loader.c | 36 elf_errorstatus elf_init(struct elf_binary *elf, const char *image_input, size_t size) in elf_init() 112 void elf_call_log_callback(struct elf_binary *elf, bool iserr, in elf_call_log_callback() 126 void elf_set_log(struct elf_binary *elf, elf_log_callback *log_callback, in elf_set_log() 134 static elf_errorstatus elf_load_image(struct elf_binary *elf, in elf_load_image() 144 void elf_set_verbose(struct elf_binary *elf) in elf_set_verbose() 190 void elf_parse_bsdsyms(struct elf_binary *elf, uint64_t pstart) in elf_parse_bsdsyms() 236 static void elf_load_bsdsyms(struct elf_binary *elf) in elf_load_bsdsyms() 467 void elf_parse_binary(struct elf_binary *elf) in elf_parse_binary() 497 elf_errorstatus elf_load_binary(struct elf_binary *elf) in elf_load_binary() 549 elf_ptrval elf_get_ptr(struct elf_binary *elf, unsigned long addr) in elf_get_ptr() [all …]
|
A D | libelf-dominfo.c | 97 elf_errorstatus elf_xen_parse_note(struct elf_binary *elf, in elf_xen_parse_note() 225 static unsigned elf_xen_parse_notes(struct elf_binary *elf, in elf_xen_parse_notes() 266 elf_errorstatus elf_xen_parse_guest_info(struct elf_binary *elf, in elf_xen_parse_guest_info() 362 static elf_errorstatus elf_xen_note_check(struct elf_binary *elf, in elf_xen_note_check() 416 static elf_errorstatus elf_xen_addr_calc_check(struct elf_binary *elf, in elf_xen_addr_calc_check() 501 elf_errorstatus elf_xen_parse(struct elf_binary *elf, in elf_xen_parse()
|
A D | libelf-private.h | 28 #define elf_msg(elf, fmt, args ... ) \ argument 30 #define elf_err(elf, fmt, args ... ) \ argument 80 #define elf_msg(elf, fmt, args ... ) \ argument 82 #define elf_err(elf, fmt, args ... ) \ argument
|
/xen/xen/common/ |
A D | livepatch_elf.c | 12 livepatch_elf_sec_by_name(const struct livepatch_elf *elf, in livepatch_elf_sec_by_name() 47 static int elf_resolve_sections(struct livepatch_elf *elf, const void *data) in elf_resolve_sections() 170 static int elf_resolve_section_names(struct livepatch_elf *elf, const void *data) in elf_resolve_section_names() 217 static int elf_get_sym(struct livepatch_elf *elf, const void *data) in elf_get_sym() 279 int livepatch_elf_resolve_symbols(struct livepatch_elf *elf) in livepatch_elf_resolve_symbols() 355 int livepatch_elf_perform_relocs(struct livepatch_elf *elf) in livepatch_elf_perform_relocs() 418 static int livepatch_header_check(const struct livepatch_elf *elf) in livepatch_header_check() 500 int livepatch_elf_load(struct livepatch_elf *elf, const void *data) in livepatch_elf_load() 525 void livepatch_elf_free(struct livepatch_elf *elf) in livepatch_elf_free()
|
A D | livepatch.c | 211 const struct livepatch_elf *elf) in resolve_old_address() 284 static int move_payload(struct payload *payload, struct livepatch_elf *elf) in move_payload() 401 static int secure_payload(struct payload *payload, struct livepatch_elf *elf) in secure_payload() 431 static bool section_ok(const struct livepatch_elf *elf, in section_ok() 469 static int check_special_sections(const struct livepatch_elf *elf) in check_special_sections() 507 static int check_patching_sections(const struct livepatch_elf *elf) in check_patching_sections() 625 #define LIVEPATCH_ASSIGN_SINGLE_HOOK(elf, hook, section_name) do { \ argument 650 struct livepatch_elf *elf) in prepare_payload() 878 static bool_t is_payload_symbol(const struct livepatch_elf *elf, in is_payload_symbol() 915 const struct livepatch_elf *elf) in build_symbol_table() [all …]
|
/xen/tools/libxc/ |
A D | xc_dom_elfloader.c | 36 static void log_callback(struct elf_binary *elf, void *caller_data, in log_callback() 47 void xc_elf_set_logfile(xc_interface *xch, struct elf_binary *elf, in xc_elf_set_logfile() 55 struct elf_binary *elf) in xc_dom_guest_type() 123 struct elf_binary elf; in xc_dom_probe_elf_kernel() local 148 struct elf_binary *elf; in xc_dom_parse_elf_kernel() local 205 struct elf_binary *elf = dom->private_loader; in xc_dom_load_elf_kernel() local
|
A D | xc_dom_hvmloader.c | 57 struct elf_binary elf; in xc_dom_probe_hvm_kernel() local 90 struct elf_binary *elf; in xc_dom_parse_hvm_kernel() local 188 struct elf_binary *elf = dom->private_loader; in xc_dom_load_hvm_kernel() local
|
/xen/xen/arch/arm/arm32/ |
A D | livepatch.c | 80 int arch_livepatch_verify_elf(const struct livepatch_elf *elf) in arch_livepatch_verify_elf() 102 bool arch_livepatch_symbol_deny(const struct livepatch_elf *elf, in arch_livepatch_symbol_deny() 222 int arch_livepatch_perform(struct livepatch_elf *elf, in arch_livepatch_perform() 299 int arch_livepatch_perform_rel(struct livepatch_elf *elf, in arch_livepatch_perform_rel() 306 int arch_livepatch_perform_rela(struct livepatch_elf *elf, in arch_livepatch_perform_rela()
|
/xen/xen/arch/x86/ |
A D | livepatch.c | 193 int arch_livepatch_verify_elf(const struct livepatch_elf *elf) in arch_livepatch_verify_elf() 210 bool arch_livepatch_symbol_ok(const struct livepatch_elf *elf, in arch_livepatch_symbol_ok() 217 bool arch_livepatch_symbol_deny(const struct livepatch_elf *elf, in arch_livepatch_symbol_deny() 224 int arch_livepatch_perform_rel(struct livepatch_elf *elf, in arch_livepatch_perform_rel() 233 int arch_livepatch_perform_rela(struct livepatch_elf *elf, in arch_livepatch_perform_rela()
|
/xen/xen/include/xen/ |
A D | libelf.h | 102 #define ELF_IMAGE_BASE(elf) ((elf_ptrval)(elf)->image_base) argument 231 #define elf_32bit(elf) (ELFCLASS32 == (elf)->class) argument 232 #define elf_64bit(elf) (ELFCLASS64 == (elf)->class) argument 233 #define elf_msb(elf) (ELFDATA2MSB == (elf)->data) argument 234 #define elf_lsb(elf) (ELFDATA2LSB == (elf)->data) argument 235 #define elf_swap(elf) (NATIVE_ELFDATA != (elf)->data) argument 237 #define elf_uval_3264(elf, handle, elem) \ argument 242 #define elf_uval(elf, handle, elem) \ argument 252 #define elf_size(elf, handle_or_handletype) ({ \ argument 285 #define elf_store_val(elf, type, ptr, val) \ argument [all …]
|
/xen/xen/arch/arm/arm64/ |
A D | livepatch.c | 67 int arch_livepatch_verify_elf(const struct livepatch_elf *elf) in arch_livepatch_verify_elf() 82 bool arch_livepatch_symbol_deny(const struct livepatch_elf *elf, in arch_livepatch_symbol_deny() 233 int arch_livepatch_perform_rel(struct livepatch_elf *elf, in arch_livepatch_perform_rel() 240 int arch_livepatch_perform_rela(struct livepatch_elf *elf, in arch_livepatch_perform_rela()
|
/xen/tools/xcutils/ |
A D | readnotes.c | 63 static void print_string_note(const char *prefix, struct elf_binary *elf, in print_string_note() 69 static void print_numeric_note(const char *prefix, struct elf_binary *elf, in print_numeric_note() 79 static void print_l1_mfn_valid_note(const char *prefix, struct elf_binary *elf, in print_l1_mfn_valid_note() 102 static unsigned print_notes(struct elf_binary *elf, ELF_HANDLE_DECL(elf_note) start, ELF_HANDLE_DEC… in print_notes() 181 struct elf_binary elf; in main() local
|
/xen/tools/fuzz/libelf/ |
A D | libelf-fuzzer.c | 10 struct elf_binary elf_buf, *elf; in LLVMFuzzerTestOneInput() local
|
/xen/xen/arch/arm/ |
A D | livepatch.c | 111 bool arch_livepatch_symbol_ok(const struct livepatch_elf *elf, in arch_livepatch_symbol_ok()
|
/xen/xen/arch/x86/hvm/ |
A D | dom0_build.c | 495 const struct domain *d, const struct elf_binary *elf, size_t size) in find_memory() 541 struct elf_binary elf; in pvh_load_kernel() local
|
/xen/xen/arch/x86/pv/ |
A D | dom0_build.c | 318 struct elf_binary elf; in dom0_construct_pv() local
|