mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
* peXXigen.c (rsrc_process_section): Use ptrdiff_t as the type for
pointer arithmetic.
This commit is contained in:
parent
5fba4c0ff5
commit
1f93a6d6f3
@ -1,3 +1,8 @@
|
||||
2013-12-30 Ilya Tocar <ilya.tocar@intel.com>
|
||||
|
||||
* peXXigen.c (rsrc_process_section): Use ptrdiff_t as the type for
|
||||
pointer arithmetic.
|
||||
|
||||
2013-12-20 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf-eh-frame.c (cie_eq): Return false when initial_insn_length
|
||||
|
@ -3541,7 +3541,7 @@ rsrc_process_section (bfd * abfd,
|
||||
}
|
||||
|
||||
/* Align the data pointer - we assume 1^2 alignment. */
|
||||
data = (bfd_byte *) (((long) (data + 3)) & ~ 3);
|
||||
data = (bfd_byte *) (((ptrdiff_t) (data + 3)) & ~ 3);
|
||||
rva_bias += data - p;
|
||||
|
||||
if (data == (dataend - 4))
|
||||
@ -3569,7 +3569,7 @@ rsrc_process_section (bfd * abfd,
|
||||
|
||||
data = rsrc_parse_directory (abfd, type_tables + indx, data, data,
|
||||
dataend, rva_bias, NULL);
|
||||
data = (bfd_byte *) (((long) (data + 3)) & ~ 3);
|
||||
data = (bfd_byte *) (((ptrdiff_t) (data + 3)) & ~ 3);
|
||||
rva_bias += data - p;
|
||||
if (data == (dataend - 4))
|
||||
data = dataend;
|
||||
|
Loading…
Reference in New Issue
Block a user