summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-04 14:08:01 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-03-04 14:09:51 +0000
commitbacaea221e81ec1137a5fa9f258e5ca093bbcb11 (patch)
tree68f411432c642a13394f3f0d9421bff590c8ab56
parentc534b3dd30de8d5a59ff64628a6a0b3eb938a102 (diff)
downloadhaskell-wip/bsd-adjustor.tar.gz
rts/adjustor: Always place adjustor templates in data section (also on openbsd)wip/bsd-adjustor
This patch extends the logic in !7604 to also apply to openbsd. Fixes #21155 Co-authored-by: Greg Steuck <greg@nest.cx>
-rw-r--r--rts/adjustor/NativeAmd64Asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/adjustor/NativeAmd64Asm.S b/rts/adjustor/NativeAmd64Asm.S
index a4b0c9b484..9bf47b80bd 100644
--- a/rts/adjustor/NativeAmd64Asm.S
+++ b/rts/adjustor/NativeAmd64Asm.S
@@ -27,7 +27,7 @@
*/
#if defined(darwin_HOST_OS)
.section __DATA,__data
-#elif defined(linux_HOST_OS)
+#elif defined(linux_HOST_OS) || defined(openbsd_HOST_OS)
.section .data
#endif
@@ -89,7 +89,7 @@ DECLARE_CSYM(complex_ccall_adjustor_end)
/* See Note [Adjustor templates live in data section]. */
#if defined(darwin_HOST_OS)
.section __TEXT,__text
-#elif defined(linux_HOST_OS)
+#elif defined(linux_HOST_OS) || defined(openbsd_HOST_OS)
.section .text
#endif