* peXXigen.c (rsrc_print_section): Use ptrdiff_t as the type for

pointer arithmetic.
This commit is contained in:
Nick Clifton 2013-12-18 10:30:25 +00:00
parent 4ac248ca0b
commit b9e95fa2d1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-12-18 Nick Clifton <nickc@redhat.com>
* peXXigen.c (rsrc_print_section): Use ptrdiff_t as the type for
pointer arithmetic.
2013-12-17 H.J. Lu <hongjiu.lu@intel.com>
* elf32-arm.c (elf32_arm_post_process_headers): Call
@ -107,6 +112,8 @@
(rsrc_process_section): New function - merges the contents of a
.rsrc section.
(_bfd_XXi_final_link_postscript): Call rsrc_process_section.
(rsrc_print_section): Fix mingw64 size issue.
* configure.in (AC_CHECK_HEADERS): Add wchar.h
* config.in: Regenerate.
* configure: Regenerate.

View File

@ -2205,7 +2205,7 @@ rsrc_print_section (bfd * abfd, void * vfile)
/* Align data before continuing. */
int align = (1 << section->alignment_power) - 1;
data = (bfd_byte *) (((long) (data + align)) & ~ align);
data = (bfd_byte *) (((ptrdiff_t) (data + align)) & ~ align);
rva_bias += data - p;
/* For reasons that are unclear .rsrc sections are sometimes created