summaryrefslogtreecommitdiff
path: root/ldso/ldso/sh64/dl-sysdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/sh64/dl-sysdep.h')
-rw-r--r--ldso/ldso/sh64/dl-sysdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/sh64/dl-sysdep.h b/ldso/ldso/sh64/dl-sysdep.h
index 266ec681c..98a21aedb 100644
--- a/ldso/ldso/sh64/dl-sysdep.h
+++ b/ldso/ldso/sh64/dl-sysdep.h
@@ -25,7 +25,7 @@
struct elf_resolve;
extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry);
-#define do_rem(result, n, base) result = (n % base)
+#define do_rem(result, n, base) ((result) = (n) % (base))
/* 4096 bytes alignment */
#define PAGE_ALIGN 0xfffff000