diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 253e0618fc..5f2bdb2485 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-03-07 Pedro Alves + + * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma + through ptr_to_uint instead of through long. + 2014-03-06 Nick Clifton PR 16664 diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c index afc81cbf5e..8f2f3a0def 100644 --- a/bfd/rs6000-core.c +++ b/bfd/rs6000-core.c @@ -583,7 +583,7 @@ rs6000coff_core_p (bfd *abfd) { ldi_core = ldinfo.l32.ldinfo_core; ldi_datasize = ldinfo.l32.ldinfo_datasize; - ldi_dataorg = (bfd_vma) (long) ldinfo.l32.ldinfo_dataorg; + ldi_dataorg = (bfd_vma) (ptr_to_uint) ldinfo.l32.ldinfo_dataorg; ldi_next = ldinfo.l32.ldinfo_next; } @@ -625,7 +625,7 @@ rs6000coff_core_p (bfd *abfd) } else { - vminfo_addr = (bfd_vma) (long) vminfo.old.vminfo_addr; + vminfo_addr = (bfd_vma) (ptr_to_uint) vminfo.old.vminfo_addr; vminfo_size = vminfo.old.vminfo_size; vminfo_offset = vminfo.old.vminfo_offset; }