aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-08-17 14:28:01 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-08-17 14:28:01 +0000
commitbc79cded48d30c9812501976924d9076885478b1 (patch)
tree2f64bb6f3ffd5f23781b29f46978d2f95cd13c47 /bfd
parentdec20c9e4de7d566680b40aa18ff3004d974020b (diff)
downloadgdb-bc79cded48d30c9812501976924d9076885478b1.zip
gdb-bc79cded48d30c9812501976924d9076885478b1.tar.gz
gdb-bc79cded48d30c9812501976924d9076885478b1.tar.bz2
bfd/
2005-08-17 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1179 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma instead of vma. (_bfd_dwarf2_find_line): Likewise. binutils/ 2005-08-17 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1179 * objdump.c (disassemble_bytes): Don't adjust adjust_section_vma. (adjust_addresses): Don't adjust vma for debugging section. Adjust lma only for relocatable files. (dump_bfd): Tell adjust_addresses if it is a relocatable file.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/dwarf2.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a5f42e8..af031e0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/1179
+ * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
+ instead of vma.
+ (_bfd_dwarf2_find_line): Likewise.
+
2005-08-17 Alan Modra <amodra@bigpond.net.au>
* elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 1348137..0a0fc12 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -2183,9 +2183,9 @@ _bfd_dwarf2_find_nearest_line (bfd *abfd,
stash = *pinfo;
addr = offset;
if (section->output_section)
- addr += section->output_section->vma + section->output_offset;
+ addr += section->output_section->lma + section->output_offset;
else
- addr += section->vma;
+ addr += section->lma;
*filename_ptr = NULL;
*functionname_ptr = NULL;
*linenumber_ptr = 0;
@@ -2392,9 +2392,9 @@ _bfd_dwarf2_find_line (bfd *abfd,
addr = symbol->value;
if (section->output_section)
- addr += section->output_section->vma + section->output_offset;
+ addr += section->output_section->lma + section->output_offset;
else
- addr += section->vma;
+ addr += section->lma;
*filename_ptr = NULL;
stash = *pinfo;