aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-12-16 15:44:55 +0000
committerNick Clifton <nickc@redhat.com>2022-12-16 15:44:55 +0000
commitc7ce51d8c886cc4b34ccee30dd1e7add4058466f (patch)
treee3ae215340d7f45c855479102a59b579512d0e9a /binutils/dwarf.c
parent832a980e1725a4a7fa527f2dcd92a64d7e68ab0f (diff)
downloadfsf-binutils-gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.zip
fsf-binutils-gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.tar.gz
fsf-binutils-gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.tar.bz2
Fix previous delta to allow for compilation on 32-bit systems
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 533f118..03b36afc 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -7741,7 +7741,7 @@ display_debug_addr (struct dwarf_section *section,
if (end < entry)
{
warn (_("Corrupt %s section header: length field (%lx) is too small\n"),
- section->name, length);
+ section->name, (long) length);
return 0;
}
SAFE_BYTE_GET_AND_INC (version, curr_header, 2, entry);
@@ -7761,8 +7761,8 @@ display_debug_addr (struct dwarf_section *section,
{
warn (_("Corrupt %s section: address base of entry %u (%lx) is less than entry %u (%lx)\n"),
section->name,
- i, debug_addr_info [i]->addr_base,
- i + 1, debug_addr_info [i + 1]->addr_base);
+ i, (long) debug_addr_info [i]->addr_base,
+ i + 1, (long) debug_addr_info [i + 1]->addr_base);
return 0;
}
}