[Git][ghc/ghc][wip/T22834] nativeGen: Set explicit section types on all platforms

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Thu Jul 20 18:20:14 UTC 2023



Ben Gamari pushed to branch wip/T22834 at Glasgow Haskell Compiler / GHC


Commits:
4052fbb0 by Ben Gamari at 2023-07-20T14:19:55-04:00
nativeGen: Set explicit section types on all platforms

- - - - -


1 changed file:

- compiler/GHC/CmmToAsm/Ppr.hs


Changes:

=====================================
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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4052fbb0af545c277fcf72c5e1ffd7a63102d474

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4052fbb0af545c277fcf72c5e1ffd7a63102d474
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230720/13e88b57/attachment.html>


More information about the ghc-commits mailing list