From 2c8bab2097d2c70945ff451512cf66c88ffe12f6 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Wed, 19 Nov 2025 03:50:28 +0000 Subject: [PATCH] align common symbols on 16-byte boundary instead of basing off size of variable --- macho.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macho.c b/macho.c index 17d8e80..1d8b697 100644 --- a/macho.c +++ b/macho.c @@ -685,11 +685,16 @@ void read_macho_object (const char *filename, unsigned char *data, unsigned long bss_part->content_size = symbol->size = symbol->value; +#if 0 if (bss_part->content_size > PAGE_SIZE) { bss_part->alignment = PAGE_SIZE; } else { bss_part->alignment = bss_part->content_size; } +#else + /* Assume everything needed at most 16-byte alignment. */ + bss_part->alignment = 16; +#endif symbol->part = bss_part; symbol->value = 0; -- 2.34.1