diff options
author | Thijs Alkemade <me@thijsalkema.de> | 2016-12-06 17:12:17 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-06 18:44:43 -0500 |
commit | b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad (patch) | |
tree | a80d546ceee8179f8eca6f26840da6edb74ca51e /compiler/cmm/Cmm.hs | |
parent | eafa06dce4aa815159ebba5a34d5137cf401ffbc (diff) | |
download | haskell-b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad.tar.gz |
Reduce the size of string literals in binaries.
Removed the alignment for strings and mark then as cstring sections in
the generated asm so the linker can merge duplicate sections.
Reviewers: rwbarton, trofi, austin, trommler, simonmar, hvr, bgamari
Reviewed By: hvr, bgamari
Subscribers: simonpj, hvr, thomie
Differential Revision: https://phabricator.haskell.org/D1290
GHC Trac Issues: #9577
Diffstat (limited to 'compiler/cmm/Cmm.hs')
-rw-r--r-- | compiler/cmm/Cmm.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/cmm/Cmm.hs b/compiler/cmm/Cmm.hs index ea9fe934a6..3195935fa2 100644 --- a/compiler/cmm/Cmm.hs +++ b/compiler/cmm/Cmm.hs @@ -172,6 +172,7 @@ data SectionType | RelocatableReadOnlyData | UninitialisedData | ReadOnlyData16 -- .rodata.cst16 on x86_64, 16-byte aligned + | CString | OtherSection String deriving (Show) |