diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-12-07 10:33:11 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2023-01-04 11:58:42 +0000 |
commit | 32255d055b768d51deb9d1f49681164cf7492011 (patch) | |
tree | fb9b6ab9c77366b59b19f1f07ac275300d21e348 /docs | |
parent | 21bedd84f2cde6aa17d09c610a2a309f3e2a7f10 (diff) | |
download | haskell-32255d055b768d51deb9d1f49681164cf7492011.tar.gz |
compiler: Add -f[no-]split-sections flags
Here we add a `-fsplit-sections` flag which may some day replace
`-split-sections`. This has the advantage of automatically providing a
`-fno-split-sections` flag, which is useful for our packaging because we
enable `-split-sections` by default but want to disable it in certain
configurations.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/phases.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst index aa171c2055..8d0c32f5c1 100644 --- a/docs/users_guide/phases.rst +++ b/docs/users_guide/phases.rst @@ -909,10 +909,12 @@ for example). option for Apple's Linker (``-F`` already means something else for GHC). -.. ghc-flag:: -split-sections +.. ghc-flag:: -fsplit-sections + -split-sections :shortdesc: Split sections for link-time dead-code stripping :type: dynamic :category: linking + :reverse: -fno-split-sections Place each generated function or data item into its own section in the output file if the target supports arbitrary sections. The name of the |