Skip to content
Snippets Groups Projects
Commit e99cf237 authored by Moritz Angermann's avatar Moritz Angermann Committed by Marge Bot
Browse files

nativeGen: section flags for .text$foo only

Commit 3ece9856, was supposed to fix
#22834 in !9810.

It does however add "xr" indiscriminatly to .text sections
even if splitSections is disabled. This leads to the assembler saying:

ghc_1.s:7849:0: error:
     Warning: Ignoring changed section attributes for .text
     |
7849 | .section .text,"xr"
     | ^
parent 58f3babf
No related branches found
No related tags found
No related merge requests found
......@@ -246,9 +246,10 @@ pprGNUSectionHeader config t suffix =
panic "PprBase.pprGNUSectionHeader: unknown section type"
flags = case t of
Text
| OSMinGW32 <- platformOS platform
| OSMinGW32 <- platformOS platform, splitSections
-> text ",\"xr\""
| otherwise -> text ",\"ax\"," <> sectionType platform "progbits"
| splitSections
-> text ",\"ax\"," <> sectionType platform "progbits"
CString
| OSMinGW32 <- platformOS platform
-> empty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment