From 1a9911c3b8889e1931da3f18f804f91f1880ce19 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 28 Mar 2011 11:58:18 +0000 Subject: [PATCH] * coffdump.c (dump_coff_scope): Use double typecast for pointer P to allow compilation for all targets. --- binutils/ChangeLog | 5 +++++ binutils/coffdump.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5af068b5515..f806edde632 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2011-03-25 Pierre Muller + + * coffdump.c (dump_coff_scope): Use double typecast for pointer P + to allow compilation for all targets. + 2011-03-25 Pierre Muller * dwarf.c (process_debug_info): Use offset_size to determine diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 21114bc81d8..d5ccb99c3ad 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -365,7 +365,7 @@ dump_coff_scope (struct coff_scope *p) if (p) { tab (1); - printf ("List of blocks %lx ",(unsigned long) p); + printf ("List of blocks %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t) p); if (p->sec) printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1); -- 2.30.2