From f9ef5a44e54073854571a8b421e64e63706e4572 Mon Sep 17 00:00:00 2001 From: Ben Gamari <ben@smart-cactus.org> Date: Wed, 8 Feb 2023 11:59:40 -0500 Subject: [PATCH] nativeGen: Set explicit section types on all platforms (cherry picked from commit db7f7240b53c01447e44d2790ee37eacaabfbcf3) --- compiler/GHC/CmmToAsm/Ppr.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/GHC/CmmToAsm/Ppr.hs b/compiler/GHC/CmmToAsm/Ppr.hs index 52c2f8307fb..45b0545059e 100644 --- a/compiler/GHC/CmmToAsm/Ppr.hs +++ b/compiler/GHC/CmmToAsm/Ppr.hs @@ -248,6 +248,7 @@ pprGNUSectionHeader config t suffix = Text | OSMinGW32 <- platformOS platform -> text ",\"xr\"" + | otherwise -> text ",\"ax\"," <> sectionType platform "progbits" CString | OSMinGW32 <- platformOS platform -> empty -- GitLab