arch/arm32_jump_tables
Define a set predicates to detect jump-tables for ARM32
- arm_jump_table_block_instruction(EA:address, EA_jump:address)
Instructions in the same block as the jumptable’s jump instruction.
Recursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- arm_jump_table_block_start(Block:address, EA_jump:address)
The start of the block containing the jumptable’s jump instruction.
Can be used before code_in_block_candidate.
Uses:
nextRecursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- indexed_pc_relative_load(EA:address, DstReg:register, LoadFrom:address, IndexReg:reg_nullable, Size:unsigned)
PC-relative loads using an index register
Recursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- indexed_pc_relative_load_relative(EA:address, DstReg:register, LoadFrom:address, IndexReg:reg_nullable, Size:unsigned, EA_add:address, Reference:address)
Specialization of indexed_pc_relative_load, where the result in an arithmetic operation indicating a relative jump table.
Uses:
arch.pc_relative_addr,arch.reg_reg_arithmetic_operationRecursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- thumb_jumptable_instruction(Operation:symbol, Size:unsigned)
Thumb jump table instructions “TBB” and “TBH” and their entry sizes.
Used by:
arm_jump_table_candidate_start
- arm_jump_table_candidate_target(Type:symbol, Thumb:unsigned, EA:address, Reference:address, Size:unsigned, Scale:unsigned, TargetAddr:address)
Compute the target address for the given unsigned relative jump-table entry.
Type: Target type (“rel_unsigned”, “rel_signed”, or “absolute”) EA: An entry of a relative jump-table Thumb: lowest address bit of the jumping instruction Reference: The Base from which offsets are relative Size: The size of the entry Scale: The scale amount is multiplied to the entry value AlignedTargetAddr: The computed target address is aligned
WARNING: Predicate not present in compiled Datalog program (Dead Code)
- arm_jump_table_skip_first_entry(EA_jump:address)
Indicates the jump table used be EA_jump is allowed to skip the first entry in the table.
Sometimes the compiler knows the index is non-zero, and puts padding in the starting entry. We have observed a couple of cases where this is necessary:
zero padding in a tbb jump table
”bpkt #0” as padding in ARM ldr/add in libRSCpuRef.so
Recursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- arm_jump_table_cmp_limit(Jmp:address, TableStart:address, Count:number)
The value compared against just before entering the jumptable’s block.
This is typically the number of jumptable entries, so we use it to create one big data block instead of smaller ones. We prefer this if we can identify the comparison, because it’s a definitive limit on the jumptable size.
Uses:
arch.conditional,arch.jump,arch.memory_access,arch.stack_pointer,cmp_immediate_to_reg,limit_type_mapRecursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used
- arm_jump_table_data_block(EA_jmp:address, TableStart:address, Block:address, Size:address)
Generate data block candidates for the jump table entries. We try to generate one big block, but split it at any possible jump target. This allows the block_points rules to decide whether the conflicts are data or code.
Used by:
data_object_candidate,data_object_pointRecursive:
litpool_symbolic_operand,__agg_single2,invalid,branch_to_calculated_pc_rel_addr,reg_used_for,data_block_limit,correlated_live_reg,inter_procedural_edge,value_reg_limit,no_value_reg_limit,init_symbol_minus_symbol_candidate_arm,start_function,jump_table_signed,stack_def_use.live_var_at_prior_used,arm_jump_table_block_start,code_in_block_candidate,wis_schedule_iter,split_load_operand,plt_block,base_relative_operand,next_function_entry_initial,stack_def_use.last_def_in_block,arch.reg_relative_load,data_in_code_propagate,must_fallthrough,jump_table_candidate,reg_has_got,block_instruction_next,negative_block_heuristic,relative_address_start,straight_line_def_used,data_in_code,reg_def_use.last_def_in_block,adjusts_stack_in_block,tls_desc_call,segment_target_range,next_block_in_byte_interval,next_type,discarded_block,block_points_proportional,__agg_single3,reg_def_use.live_var_used,instruction_memory_access_size,split_load_total_points,overlapping_instruction,value_reg_unsupported,jump_table_max,arm_jump_table_candidate,no_return_call,arm_jump_table_data_block,possible_target_from,arm_jump_table_skip_first_entry,self_contained_segment,call_target_has_other_fallthrough_inter,unresolved_block,indexed_pc_relative_load_relative,const_value_reg_used,block_last_instruction,__agg_single6,stack_def_use.live_var_at_block_end,straight_line_last_def,arch.simple_data_load,adrp_used,block,reg_def_use.live_var_at_block_end,reg_reg_arithmetic_operation_defs,jump_table_prelude,arm_jump_table_block_instruction,flags_and_jump_pair,plt_entry,simple_data_access_pattern,call_tls_get_addr,compare_and_jump_indirect_op_valid,block_points,reg_def_use.def_used,stack_def_use.live_var_used_in_block,arm_jump_table_data_block_limit,relative_address,split_load_candidate,data_block_candidate,base_relative_operation,value_reg_edge,block_total_points,compare_and_jump_immediate,compare_and_jump_indirect,def_used_for_address,split_load_point,fallthrough_over_padding,__agg_subclause6,split_load_conflict,got_relative_operand,reg_def_use.ambiguous_block_last_def,reg_def_use.block_last_def,known_block,may_fallthrough,relative_jump_table_entry_candidate,__agg_single10,reg_has_base_image,unresolved_interval_order,unresolved_interval,candidate_block_is_not_padding,inferred_main_dispatch,split_load_for_symbolization,stack_def_use.used_in_block,first_block_in_byte_interval,indefinite_litpool_ref,no_return_block,inferred_main_in_reg,incomplete_block,impossible_block,block_next,stack_base_reg_move,unlikely_have_symbolic_immediate,tls_get_addr,base_relative_jump,block_limit,padding_block_candidate,data_access,compare_and_jump_register,next_end,cinf_ldr_add_pc,block_candidate_boundaries,possible_target,block_candidate_dependency_edge,reg_def_use.live_var_at_prior_used,jump_table_candidate_refined,basic_target,stack_def_use.live_var_def,wis_prior,block_implies_block,block_boundaries,litpool_confidence,wis_has_prior,reg_def_use.return_block_end,symbol_minus_symbol_litpool_access_pattern,reg_def_use.flow_def,likely_fallthrough,stack_def_use.block_last_def,invalid_jump_table_candidate,cmp_defines,code_in_block_candidate_refined,hi_load_prop,wis_memo,overlap_with_litpool,resolved_reaches,reg_def_use.return_val_used,call_may_fallthrough_inter,function_inference.function_entry_initial,candidate_block_is_padding,__agg_subclause4,unresolved_block_overlap,padding_block_limit,stack_def_use.ref_in_block,init_ldr_add_pc,litpool_ref,discarded_split_load,value_reg,block_heuristic,reg_def_use.defined_in_block,initial_function_containing_return,reg_def_use.used_in_block,gp_relative_operand,stack_def_use.def_used,no_return_call_refined,jump_table_target,next_start,common_tail,symbolic_expr_from_relocation,tls_relative_operand_mips,block_overlap,contains_implausible_instr_seq,stack_def_use.defined_in_block,composite_data_access,contains_plausible_instr_seq,arm_jump_table_cmp_limit,relocation_adjustment,jump_table_start,relocation_adjustment_total,local_dynamic_tls_candidate,call_tls_get_addr_mips,stack_def_use.live_var_used,code_in_block,indexed_pc_relative_load,no_return_call_propagated,reg_def_use.ref_in_block,data_segment,is_padding,after_end,arm_jump_table_candidate_start,wis_schedule,nop_in_padding_candidate,reg_def_use.live_var_def,jump_table_element_access,split_load,__agg_subclause3,__agg_subclause2,reg_def_use.ambiguous_last_def_in_block,last_value_reg_limit,transition_block_limit,__agg_subclause7,arch.extend_load,initialized_data_segment,cmp_reg_to_reg,litpool_boundaries,reg_def_use.used