projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94dc4ea
)
* cache.c (cache_bmmap): Don't use void* arithmetic.
author
Alan Modra
<amodra@gmail.com>
Mon, 22 Oct 2012 04:51:52 +0000
(
04:51
+0000)
committer
Alan Modra
<amodra@gmail.com>
Mon, 22 Oct 2012 04:51:52 +0000
(
04:51
+0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/cache.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 5c6f6da90865b3a729e43cabae3640fb5142d199..4bb6d539380b5e97d852fe6f771a4926997ae09a 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,7
@@
+2012-10-22 Alan Modra <amodra@gmail.com>
+
+ * cache.c (cache_bmmap): Don't use void* arithmetic.
+
2012-10-21 Alan Modra <amodra@gmail.com>
* compress.c (bfd_cache_section_contents): New function.
diff --git
a/bfd/cache.c
b/bfd/cache.c
index 574d8b2f21b5aa90aa890510b1f85557963426c3..88f89b169aabf956cd16d8c4061ebf7b310c7e58 100644
(file)
--- 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