Re: [hatari-devel] -fno-common for macOS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] -fno-common for macOS
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Mon, 28 Jul 2025 11:39:51 +0300
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.dnamail.fi 03A654098E8E
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helsinkinet.fi; s=2025-03; t=1753691992; bh=Fe+g7u2uoA+4xQphtb84A0RZifp2xtd4J/EzB1/ttzw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Cp2BdyIaYL23blYD0kAFcMkaDX8KzaDBgMO8N9kUH8+mFrL+COccqFUh66RJewmxB SSA//XCQK5pxdEbVF3wNvH9vJP/NttcCY1NDCpRndDEp7YwopJ2SDh/8x3tM+NdoSj fOaN4qrrFAqETaxiRgOdgh6RwViJj1qogaBH7tGDTn/azX74Bde3shARzB4la6GARW /T86lhbsLiVLkJrRXpsfk1NhbcnNUbNI9uqvBzKksTsCmN5iWNmJMcbUCxNm9YbkjT FYpLj3p4spsG/3fhU11WYKtsnAjjedRcRdDBF033C412AgN0y2IvcaclG/QwXZVkhn 95Ylk9r46DVRA==
Hi Andreas,
On 21.7.2025 12.45, Andreas Grabher wrote:
it seems the latest compilers on macOS require -fno-common to be set in order to avoid a compilation error (ld: warning: reducing alignment of section __DATA,__common from 0x8000 to 0x4000 because it exceeds segment maximum alignment).
Here is a post about the issue: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2025-May/343169.html
At the moment -fno-common is only set if ASAN is enabled but it should always be set.
I did not receive rest of the discussion, but saw it on the mailing list
archive.
In your patch proposal, I think it would make more sense to use
temporary local allocations instead of static object-global ones.
(Either in stack, or alloc & free from heap.)
- Eero