Use correct section types syntax for architecture
Previously GHC would always assume that section types began with `@` while producing assembly, which is not true. For instance, in ARM assembly syntax section types begin with `%`. This abstracts out section type pretty-printing and adjusts it to correctly account for the target architectures assembly flavor. Reviewers: austin, hvr, Phyx Reviewed By: Phyx Subscribers: Phyx, rwbarton, thomie, erikd GHC Trac Issues: #13937 Differential Revision: https://phabricator.haskell.org/D3712
Showing
- aclocal.m4 10 additions, 1 deletionaclocal.m4
- compiler/ghc.cabal.in 1 addition, 0 deletionscompiler/ghc.cabal.in
- compiler/main/DriverPipeline.hs 4 additions, 2 deletionscompiler/main/DriverPipeline.hs
- compiler/main/Elf.hs 4 additions, 10 deletionscompiler/main/Elf.hs
- compiler/nativeGen/AsmCodeGen.hs 2 additions, 1 deletioncompiler/nativeGen/AsmCodeGen.hs
- compiler/nativeGen/Dwarf/Constants.hs 6 additions, 4 deletionscompiler/nativeGen/Dwarf/Constants.hs
- compiler/nativeGen/PprBase.hs 2 additions, 1 deletioncompiler/nativeGen/PprBase.hs
- compiler/utils/AsmUtils.hs 18 additions, 0 deletionscompiler/utils/AsmUtils.hs
Loading
Please register or sign in to comment