summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/bits/elf-fdpic.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/bfin/bits/elf-fdpic.h')
-rw-r--r--libc/sysdeps/linux/bfin/bits/elf-fdpic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/bfin/bits/elf-fdpic.h b/libc/sysdeps/linux/bfin/bits/elf-fdpic.h
index dddf82ccc..9fcf93fe3 100644
--- a/libc/sysdeps/linux/bfin/bits/elf-fdpic.h
+++ b/libc/sysdeps/linux/bfin/bits/elf-fdpic.h
@@ -91,7 +91,7 @@ __reloc_pointer (void *p,
/* This should be computed as part of the pointer comparison
above, but we want to use the carry in the comparison, so we
can't convert it to an integer type beforehand. */
- unsigned long offset = p - (void*)map->segs[c].p_vaddr;
+ unsigned long offset = (char*)p - (char*)map->segs[c].p_vaddr;
/* We only check for one-past-the-end for the last segment,
assumed to be the data segment, because other cases are
ambiguous in the absence of padding between segments, and