diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-11-11 10:58:08 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-11-11 11:10:47 -0500 |
commit | ec0bf8117d1aefd20711a6152ebbca63f3bd0774 (patch) | |
tree | 4bccdbdbb789e9a9b693faec34a2a91456ffcf43 /rts/LinkerInternals.h | |
parent | 7a7bb5d27b0e240304bd18e7ebd2f60877e4cc12 (diff) | |
download | haskell-ec0bf8117d1aefd20711a6152ebbca63f3bd0774.tar.gz |
rts: Fix LoadArchive on OS X
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r-- | rts/LinkerInternals.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h index 1093435cb3..ce5c5ebbe4 100644 --- a/rts/LinkerInternals.h +++ b/rts/LinkerInternals.h @@ -293,4 +293,13 @@ char *cstring_from_section_name( UChar* strtab); #endif /* mingw32_HOST_OS */ +/* Which object file format are we targetting? */ +#if defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || defined(freebsd_HOST_OS) || defined(kfreebsdgnu_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS) || defined(gnu_HOST_OS) +# define OBJFORMAT_ELF +#elif defined (mingw32_HOST_OS) +# define OBJFORMAT_PEi386 +#elif defined(darwin_HOST_OS) +# define OBJFORMAT_MACHO +#endif + #endif /* LINKERINTERNALS_H */ |