aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-31 16:09:53 +0000
committerNick Clifton <nickc@redhat.com>2007-10-31 16:09:53 +0000
commit41e9264106c8d962e94b0ac1f7e600cdfe358023 (patch)
tree1ce92e8226ab382b90ee456c035f2dd3e57150d6 /binutils/dwarf.c
parent08790784703710bad064de53ce2805931204f7e7 (diff)
downloadfsf-binutils-gdb-41e9264106c8d962e94b0ac1f7e600cdfe358023.zip
fsf-binutils-gdb-41e9264106c8d962e94b0ac1f7e600cdfe358023.tar.gz
fsf-binutils-gdb-41e9264106c8d962e94b0ac1f7e600cdfe358023.tar.bz2
* dwarf.c (is_relocatable): Remove definition.
(display_debug_frames): Remove check in is_relocatable. * dwarf.h (is_relocatable): Remove declaration. * objdump.c (is_relocatable): New static definition. * readelf.c (dump_relocations): Make the function void. (is_32bit_abs_reloc): Add support for x86, Arc, Arm, D10V, Dlx, OR32 and Score. (is_32bit_pcrel_reloc): Add support for x86 and Arm. (is_16bit_abs_reloc): Add support for D10V. (debug_apply_rela_addends): Rename to debug_apply_relocations. Add code to support rel relocations. (load_debug_section): Fix call to debug_apply_relocations. (get_file_header): Remove setting of is_relocatable. * gas/cfi/cfi-common-6.d: Allow for possible relocation of the .debug.eh_frame section.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index e3231d8..9a021c5 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -36,7 +36,6 @@ static unsigned int num_debug_info_entries = 0;
static debug_info *debug_information = NULL;
dwarf_vma eh_addr_size;
-int is_relocatable;
int do_debug_info;
int do_debug_abbrevs;
@@ -3184,11 +3183,7 @@ display_debug_frames (struct dwarf_section *section,
encoded_ptr_size = size_of_encoded_value (fc->fde_encoding);
fc->pc_begin = get_encoded_value (start, fc->fde_encoding);
- if ((fc->fde_encoding & 0x70) == DW_EH_PE_pcrel
- /* Don't adjust for relocatable file since there's
- invariably a pcrel reloc here, which we haven't
- applied. */
- && !is_relocatable)
+ if ((fc->fde_encoding & 0x70) == DW_EH_PE_pcrel)
fc->pc_begin += section->address + (start - section_start);
start += encoded_ptr_size;
fc->pc_range = byte_get (start, encoded_ptr_size);
@@ -3391,8 +3386,7 @@ display_debug_frames (struct dwarf_section *section,
case DW_CFA_set_loc:
vma = get_encoded_value (start, fc->fde_encoding);
- if ((fc->fde_encoding & 0x70) == DW_EH_PE_pcrel
- && !is_relocatable)
+ if ((fc->fde_encoding & 0x70) == DW_EH_PE_pcrel)
vma += section->address + (start - section_start);
start += encoded_ptr_size;
if (do_debug_frames_interp)