aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-09-01 07:50:48 +0000
committerTristan Gingold <gingold@adacore.com>2010-09-01 07:50:48 +0000
commitbe5b8c8cdb018466f34d951409cd5f39c85db80a (patch)
treef32a3338282ada6d83cfa3006239cf08a93ed7b8 /bfd
parenteff1410f2bf0e295ffd7cbd2848af76fedfa0c62 (diff)
downloadgdb-be5b8c8cdb018466f34d951409cd5f39c85db80a.zip
gdb-be5b8c8cdb018466f34d951409cd5f39c85db80a.tar.gz
gdb-be5b8c8cdb018466f34d951409cd5f39c85db80a.tar.bz2
2010-09-01 Tristan Gingold <gingold@adacore.com>
* coffcode.h (coff_slurp_line_table): Add a cast. (coff_slurp_reloc_table): Ditto.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coffcode.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1feb70b..05bda4a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-01 Tristan Gingold <gingold@adacore.com>
+
+ * coffcode.h (coff_slurp_line_table): Add a cast.
+ (coff_slurp_reloc_table): Ditto.
+
2010-08-30 Gunther Nikl <gnikl@users.sourceforge.net>
* cisco-core.c (cisco_core_file_pid): Define.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ad35e32..790908a 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4487,7 +4487,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
{
(*_bfd_error_handler)
(_("%B: warning: illegal symbol index %ld in line numbers"),
- abfd, dst.l_addr.l_symndx);
+ abfd, (long) symndx);
symndx = 0;
warned = TRUE;
}
@@ -5123,7 +5123,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
{
(*_bfd_error_handler)
(_("%B: warning: illegal symbol index %ld in relocs"),
- abfd, dst.r_symndx);
+ abfd, (long) dst.r_symndx);
cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
ptr = NULL;
}