arch/mips_symbolization
MIPS architecture-specific rules for symbolization
MIPS Symbolic Operand Attributes
%hi(symbol) / %lo(symbol)
Used to form full 32-bit addresses in non-PIC code.
Represents the high and low 16-bit parts of a symbol’s address.
Generates R_MIPS_HI16 and R_MIPS_LO16 relocations.
- E.g.,
lui $t0, %hi(foo) # $t0 gets the upper 16 bits of foo lw $t1, %lo(foo)($t0) # Add the lower 16 bits of foo to $t0
# and load from the address.
%got(symbol)
Used to access a symbol’s address through GOT.
The assembler emits an offset from $gp to the GOT entry for the symbol, which the dynamic linker resolves at runtime.
Generates an R_MIPS_GOT16 relocation.
- E.g,
lw $t9, %got(foo)($gp) # Load address of foo via GOT
%pcrel_hi(symbol) / %pcrel_lo(symbol)
Used in PIC to compute PC-relative addresses.
Generates R_MIPS_PCHI16 and R_MIPS_PCLO16 relocations.
- E.g.,
lui $t0, %pcrel_hi(foo) lw $t1, %pcrel_lo(foo)($t0)
%got_page(symbol) / %got_ofst(symbol)
Used in PIC to compute GOT-relative addresses more efficiently.
%got_page(symbol) gives the GOT entry page base and %got_ofst(symbol) gives the offset within that page.
Generates R_MIPS_GOT_PAGE and R_MIPS_GOT_OFST relocations.
- E.g.,
lw $t0, %got_page(foo)($gp) # $t0 gets the GOT page base for foo addiu $t1, $t0, %got_ofst(foo) # Add the offset to get the address of foo
- gp_relative_operand(src:address, index:operand_index, dest:address)
Instructions with an indirect operand with GP(Global Pointer)-relative address
Uses:
arch.load_operation,arch.store_operation,instruction,instruction_get_op,op_indirect,symbolUsed by:
base_addr_load,symbolic_expr,symbolic_operand_attribute,symbolic_operand_mips_candidate,tls_relative_operandRecursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- got_reference_mips_global(Got_entry:address, Symbol:symbol)
MIPS-specific got_reference using MIPS_GOTSYM and MIPS_LOCAL_GOTNO
The main reason for this is to avoid potential issues in stratification. Some generic versions of got_reference rely on symbolic_expr, which can lead to cyclic negation or cyclic aggregation.
- hi_load(ea:address, reg:register, upper:number)
- hi_load_prop(reg_restore_ea:address, ea:address, reg:register, upper:number, type:symbol)
HI load propagation to recover hi_load value from stack or simple data-flow
Recursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_load_candidate(ea_hi:address, ea_lo:address, dest:address, type:symbol)
Uses:
arch.logic_operation,arch.memory_access,arch.multiplication_operation,arch.reg_arithmetic_operation,arch.reg_reg_arithmetic_operation,arch.shift_rotate_operation,hi_load,instruction,symbolUsed by:
resolved_transfer,split_loadstoreRecursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_load_point(ea:address, nextea:address, dest:address, type:symbol, point:number, why:symbol)
Uses:
arch.reg_reg_arithmetic_operation,fde_addresses,instructionRecursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_load_conflict(ea:address, nextea:address, dest:address, type:symbol, ea2:address, nextea2:address, dest2:address, type2:symbol)
Recursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_load_total_points(ea:address, nextea:address, dest:address, type:symbol, points:number)
Recursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- discarded_split_load(ea:address, nextea:address, dest:address, type:symbol, points:number)
Used by:
split_loadstoreRecursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_load(ea:address, nextea:address, dest:address, type:symbol)
Uses:
arch.load_operation,arch.store_operation,instruction,instruction_get_dest_op,instruction_get_op,next,op_immediate,op_indirect_mapped,op_regdirect_contains_regUsed by:
__agg_subclause8,base_addr_offset_operand_candidate,symbol_minus_symbol,symbolic_operand_attribute,symbolic_operand_mips_candidateRecursive:
arm_jump_table_cmp_limit,value_reg_unsupported,value_reg,candidate_block_is_not_padding,gp_relative_operand,split_load_total_points,stack_def_use.def_used,indexed_pc_relative_load,branch_to_calculated_pc_rel_addr,code_in_block,jump_table_element_access,compare_and_jump_register,jump_table_candidate,invalid,block_candidate_boundaries,data_in_code_propagate,relocation_adjustment_total,arch.simple_data_load,local_dynamic_tls_candidate,block_limit,block_instruction_next,reg_def_use.used,wis_memo,stack_def_use.live_var_used_in_block,wis_has_prior,arm_jump_table_skip_first_entry,wis_schedule,flags_and_jump_pair,litpool_symbolic_operand,segment_target_range,inferred_main_in_reg,code_in_block_candidate_refined,unresolved_interval,code_in_block_candidate,reg_def_use.return_val_used,start_function,correlated_live_reg,indexed_pc_relative_load_relative,arm_jump_table_block_start,arch.reg_relative_load,arm_jump_table_data_block,next_block_in_byte_interval,impossible_block,reg_def_use.ambiguous_last_def_in_block,reg_def_use.live_var_at_prior_used,data_block_candidate,invalid_jump_table_candidate,compare_and_jump_indirect,reg_def_use.flow_def,arm_jump_table_data_block_limit,stack_base_reg_move,__agg_single3,base_relative_jump,arm_jump_table_block_instruction,__agg_subclause2,no_value_reg_limit,overlap_with_litpool,split_load_candidate,__agg_subclause4,padding_block_candidate,inferred_main_dispatch,relocation_adjustment,tls_get_addr,after_end,stack_def_use.defined_in_block,reg_def_use.used_in_block,stack_def_use.last_def_in_block,candidate_block_is_padding,plt_entry,jump_table_max,reg_def_use.live_var_at_block_end,initialized_data_segment,tls_relative_operand_mips,relative_address,litpool_ref,arm_jump_table_candidate_start,must_fallthrough,may_fallthrough,contains_implausible_instr_seq,__agg_subclause6,no_return_call_refined,block_points_proportional,no_return_block,cinf_ldr_add_pc,relative_address_start,adjusts_stack_in_block,resolved_reaches,block_total_points,next_end,possible_target_from,block_candidate_dependency_edge,block,self_contained_segment,block_next,reg_def_use.live_var_def,jump_table_signed,reg_has_got,no_return_call_propagated,wis_prior,split_load_conflict,jump_table_start,wis_schedule_iter,reg_def_use.ambiguous_block_last_def,jump_table_prelude,first_block_in_byte_interval,arch.extend_load,base_relative_operation,indefinite_litpool_ref,compare_and_jump_immediate,unresolved_block_overlap,split_load,stack_def_use.used_in_block,reg_reg_arithmetic_operation_defs,padding_block_limit,reg_def_use.def_used,tls_desc_call,litpool_boundaries,discarded_block,stack_def_use.live_var_def,base_relative_operand,data_in_code,plt_block,reg_used_for,overlapping_instruction,reg_has_base_image,cmp_defines,nop_in_padding_candidate,compare_and_jump_indirect_op_valid,data_block_limit,__agg_subclause7,block_implies_block,const_value_reg_used,reg_def_use.return_block_end,next_type,__agg_single10,adrp_used,symbol_minus_symbol_litpool_access_pattern,contains_plausible_instr_seq,got_relative_operand,jump_table_candidate_refined,stack_def_use.live_var_at_prior_used,possible_target,instruction_memory_access_size,block_points,basic_target,split_load_operand,incomplete_block,transition_block_limit,data_access,litpool_confidence,block_overlap,arm_jump_table_candidate,reg_def_use.block_last_def,reg_def_use.last_def_in_block,is_padding,simple_data_access_pattern,reg_def_use.live_var_used,straight_line_last_def,__agg_single2,inter_procedural_edge,init_symbol_minus_symbol_candidate_arm,function_inference.function_entry_initial,block_heuristic,hi_load_prop,unresolved_interval_order,symbolic_expr_from_relocation,discarded_split_load,likely_fallthrough,block_boundaries,call_tls_get_addr_mips,stack_def_use.block_last_def,__agg_single6,stack_def_use.live_var_at_block_end,split_load_point,cmp_reg_to_reg,unlikely_have_symbolic_immediate,reg_def_use.defined_in_block,jump_table_target,no_return_call,split_load_for_symbolization,call_tls_get_addr,__agg_subclause3,next_start,stack_def_use.ref_in_block,straight_line_def_used,def_used_for_address,init_ldr_add_pc,last_value_reg_limit,value_reg_edge,data_segment,common_tail,reg_def_use.ref_in_block,known_block,negative_block_heuristic,relative_jump_table_entry_candidate,stack_def_use.live_var_used,unresolved_block,block_last_instruction,value_reg_limit,composite_data_access
- split_loadstore(ea:address, nextea:address, dest:address)
- valid_address(EA:address)
WARNING: Predicate not present in compiled Datalog program (Dead Code)
- symbol_type(Addr:address, Type:symbol)
WARNING: Predicate not present in compiled Datalog program (Dead Code)
- base_addr_offset_operand_candidate(EA:address, NextEA:address, Index2:operand_index, Reg:register, Dest_addr:address, SymType:symbol, Got_entry:address, Offset:number, Type:symbol)
got_page / got_fst instructions pairs
EA: Instruction for got_page NextEA: Instruction for got_ofst Index2: Operand index for got_ofst Reg: Base register in NextEA Dest_addr: Target symbol address SymType: Type of target symbol (either “code” or “data”) Got_entry: GOT entry containing page base Offset: Raw offset in NextEA Index2 operand Type: Type of got_ofst instruction (either ADDIU or LoadStore)
- base_addr_offset_operand(EA:address, NextEA:address, Index2:operand_index, Dest_addr:address, SymType:symbol, Type:symbol)
- base_addr_offset_operand_point(EA:address, NextEA:address, Index2:operand_index, Points:number, Why:symbol)
- base_addr_offset_operand_total_points(EA:address, NextEA:address, Index2:operand_index, Points:number)
- base_addr_load(EA:address, NextEA:address, Reg:register, Reg2:register, Got_entry:address, BaseAddr:address)
- mips_page_base_in_got(Got_entry:address)
- match_symbol_dest_addr(Dest_addr:address)
WARNING: Predicate not present in compiled Datalog program (Dead Code)
- symbolic_operand_mips_candidate(ea:address, index:operand_index, dest:address)
- inferred_symbol_mips(EA:address, SymbolName:symbol, Scope:symbol, Visibility:symbol, Type:symbol, Pos:symbol_position)
MIPS-specific inferred_symbol:
The MIPS assembler requires any symbol referenced by a GOT-related relocation to be global; otherwise, assembly fails (e.g., with an error that local symbols cannot use %got).
However, in a fully linked shared object, symbols originally accessed via %got(sym) may appear as local in the ELF symbol table. This happens because the linker performs symbol binding reduction – localizing symbols that are not exported – even if they were originally global during assembly and relocation processing.
As a result, some GOT entries correspond to symbols that now appear local, and reassembling such code would fail because the assembler rejects %got references to local symbols.
This discrepancy arises from the difference between what the assembler allows and what the linker produces.
To resolve this issue, we create a new inferred symbol with GLOBAL binding and HIDDEN visibility for such cases. ——————————————————————————-
Uses:
aligned_address_in_data,ambiguous_symbol,base_addr_offset_operand,defined_symbol,loaded_section,mips_page_base_in_got,symbol,tls_relative_operand_mips,tls_segmentRecursive:
refined_block,data_limit_after_access,moved_pc_relative_candidate,symbolic_expr,symbolic_operand,symbolic_operand_point,data_object,+disconnected6,data_limit,after_address_in_data,discarded_jump_table_entry,moved_data_label,best_func_symbol,inferred_symbol_mips,relative_jump_table_entry,string_candidate_refined,discarded_data_object,+disconnected1,address_array_aux,next_data_limit,preferred_data_access,label_conflict,symbolic_operand_attribute,main_function,block_needs_splitting_at,symbolic_expr_attribute,data_access_limit,boundary_sym_expr,symbolic_expr_symbol_minus_symbol,labeled_data_candidate,string_candidate,data_object_conflict,moved_label_candidate,labeled_ea,data_object_point,jump_table,function_inference.function_entry,+disconnected4,inferred_special_symbol,value_reg_address_before,code_in_split_block,+disconnected2,resolved_transfer,moved_displacement_candidate,symbolic_data,code_pointer_in_data,best_symexpr_symbol,next_address_in_data,symbol_minus_symbol_candidate,symbol_score,inferred_symbol,data_object_candidate,block_needs_merging,symbol_minus_symbol_from_relocation,data_object_total_points,inferred_main_function,symbol_minus_symbol,code_in_refined_block,moved_label,got_reference,split_block,address_array
- mips_stubs_section(name:symbol)
Used by:
mips_stubs_entry
- mips_stubs_entry(Block:address, Function:symbol)
Uses:
code_in_refined_block,loaded_section,mips_stubs_section,plt_entry_candidate,symbolUsed by:
abi_intrinsic
- plt_entry_candidate(EA:address, GotIndex:unsigned)
Uses:
instruction,loaded_section,next,op_immediate,op_indirect,op_regdirect_contains_reg,symbolUsed by:
mips_stubs_entry,plt_entry
- mips_attribute_target_to_mid_function(EA:address, Dest_addr:address, Attribute:symbol)
Some relocations may reference labels inside the body of a function, not just function entry points. Log any symbolic operands with attribute whose target lies in the middle of function.