diff options
Diffstat (limited to 'output/outmacho64.c')
-rw-r--r-- | output/outmacho64.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/output/outmacho64.c b/output/outmacho64.c index dfe523b7..ba785faa 100644 --- a/output/outmacho64.c +++ b/output/outmacho64.c @@ -226,14 +226,11 @@ uint64_t rel_padcnt64 = 0; strncpy(xdst, xsrc, sizeof(xdst)); /* copy over string */ \ xdst[sizeof(xdst) - 1] = '\0'; /* proper null-termination */ -#define align(x, y) \ - (((x) + (y) - 1) & ~((y) - 1)) /* align x to multiple of y */ - #define alignint32_t(x) \ - align(x, sizeof(int32_t)) /* align x to int32_t boundary */ + ALIGN(x, sizeof(int32_t)) /* align x to int32_t boundary */ #define alignint64_t(x) \ - align(x, sizeof(int64_t)) /* align x to int64_t boundary */ + ALIGN(x, sizeof(int64_t)) /* align x to int64_t boundary */ static void debug_reloc (struct reloc *); static void debug_section_relocs (struct section *) _unused; @@ -981,7 +978,7 @@ static void macho_calculate_sizes (void) if (s->align == -1) s->align = DEFAULT_SECTION_ALIGNMENT; if(s->align) { - uint64_t newaddr = align(s->addr, 1 << s->align); + uint64_t newaddr = ALIGN(s->addr, 1 << s->align); pad = newaddr - s->addr; s->addr = newaddr; } |