Skip to content
Snippets Groups Projects
Commit a239d6bf authored by Stefan Schulze Frielinghaus's avatar Stefan Schulze Frielinghaus
Browse files

llvmGen: Set alignment for objects of the data section

Fixes #24163.
parent d2733a05
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,8 @@ genLlvmData (sec, CmmStaticsRaw lbl xs) = do
align = case sec of
Section CString _ -> if (platformArch platform == ArchS390X)
then Just 2 else Just 1
Section Data _ | platformArch platform == ArchS390X
-> Just 8
_ -> Nothing
const = if sectionProtection sec == ReadOnlySection
then Constant else Global
......
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