From: Alan Modra Date: Mon, 22 Oct 2012 04:51:52 +0000 (+0000) Subject: * cache.c (cache_bmmap): Don't use void* arithmetic. X-Git-Tag: sid-snapshot-20121101~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac3aa9e9a0163844ff1444b61d3a6eeff9a1fa3;p=thirdparty%2Fbinutils-gdb.git * cache.c (cache_bmmap): Don't use void* arithmetic. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5c6f6da9086..4bb6d539380 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2012-10-22 Alan Modra + + * cache.c (cache_bmmap): Don't use void* arithmetic. + 2012-10-21 Alan Modra * compress.c (bfd_cache_section_contents): New function. diff --git a/bfd/cache.c b/bfd/cache.c index 574d8b2f21b..88f89b169aa 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -437,7 +437,7 @@ cache_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED, { *map_addr = ret; *map_len = pg_len; - ret += offset & pagesize_m1; + ret = (char *) ret + (offset & pagesize_m1); } } #endif