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:
fe90578
)
Add the missing HAVE_GETPAGESIZE check in get_view
author
H.J. Lu
<hjl.tools@gmail.com>
Tue, 10 Feb 2015 13:46:38 +0000
(
05:46
-0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Tue, 10 Feb 2015 13:46:38 +0000
(
05:46
-0800)
ld/plugin.c
patch
|
blob
|
history
diff --git
a/ld/plugin.c
b/ld/plugin.c
index 325481791d6212fe57c3f4cbbf3c5aa498078939..a799ec78e61b7be1886bfbbe5e08316c2e3a3deb 100644
(file)
--- a/
ld/plugin.c
+++ b/
ld/plugin.c
@@
-529,9
+529,13
@@
get_view (const void *handle, const void **viewp)
size += bias;
# endif
buffer = mmap (NULL, size, PROT_READ, MAP_PRIVATE, input->fd, offset);
+# if HAVE_GETPAGESIZE
if (buffer != MAP_FAILED)
buffer += bias;
else
+# else
+ if (buffer == MAP_FAILED)
+# endif
#endif
{
char *p;