summaryrefslogtreecommitdiff
path: root/rts/linker/elf_plt.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-24 19:20:21 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-26 19:53:36 -0400
commit417f59d4140ef43714abf0307d2abd0742222db2 (patch)
treebd0fb7b8649e4df7993b1ebad563a88bd8f94a97 /rts/linker/elf_plt.h
parent6057559683757aa6cc2b69dc81bb0027f5e61fc0 (diff)
downloadhaskell-417f59d4140ef43714abf0307d2abd0742222db2.tar.gz
rts: Fix ARM linker includes
* Prefer #pragma once over guard macros * Drop redundant #includes * Fix order to ensure that necessary macros are defined when we condition on them
Diffstat (limited to 'rts/linker/elf_plt.h')
-rw-r--r--rts/linker/elf_plt.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/rts/linker/elf_plt.h b/rts/linker/elf_plt.h
index 0d99c7e462..081420476f 100644
--- a/rts/linker/elf_plt.h
+++ b/rts/linker/elf_plt.h
@@ -1,13 +1,12 @@
#pragma once
-#if defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)
-
-#include "ghcplatform.h"
#include <LinkerInternals.h>
#include "elf_plt_arm.h"
#include "elf_plt_aarch64.h"
+#if defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)
+
#if defined(OBJFORMAT_ELF)
#if defined(__x86_64__)