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

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Wed Feb 8 16:59:55 UTC 2023



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


Commits:
3d16a52e by Ben Gamari at 2023-02-08T11:59:40-05: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/3d16a52e3ef5be9a67e79f7666f90bc5eb25ef64

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3d16a52e3ef5be9a67e79f7666f90bc5eb25ef64
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/20230208/ab80f10d/attachment.html>


More information about the ghc-commits mailing list