forked from Imagelibrary/binutils-gdb
* arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
* hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use obj_section_addr and obj_section_endaddr. * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise. * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise. * ia64-tdep.c (ia64_find_global_pointer): Likewise. (find_extant_func_descr): Likewise. * solib-frv.c (frv_relocate_main_executable): Use obj_section_addr. * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use obj_section_addr and obj_section_endaddr.
This commit is contained in:
@@ -303,7 +303,8 @@ arm_pc_is_thumb (CORE_ADDR memaddr)
|
||||
{
|
||||
struct arm_per_objfile *data;
|
||||
VEC(arm_mapping_symbol_s) *map;
|
||||
struct arm_mapping_symbol map_key = { memaddr - sec->addr, 0 };
|
||||
struct arm_mapping_symbol map_key = { memaddr - obj_section_addr (sec),
|
||||
0 };
|
||||
unsigned int idx;
|
||||
|
||||
data = objfile_data (sec->objfile, arm_objfile_data_key);
|
||||
|
||||
Reference in New Issue
Block a user