diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2015-03-02 22:24:36 +0100 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2015-03-02 22:27:45 +0100 |
commit | d2625192e56dbee1f320172c593c9f0653f72bb0 (patch) | |
tree | 7b73337048c8992f8d4d766ce479eb188c9fb84e /includes | |
parent | c5977c2e2951e9e346a8f4990d5a6bbdbf9cee0b (diff) | |
download | haskell-wip/D694.tar.gz |
Use 64bit relocationswip/D694
Summary:
according to the comments, this was not possible with ancient (pre 2006) versions
of binutils. Even Debian stable has newer versions since a whilte.
Please have a close look if you know something about this; I basically removed
code by looking at the code around it, but do not necessarily know what I am
doing here.
Test Plan: Run validate on Harbormaster
Reviewers: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D694
Diffstat (limited to 'includes')
-rw-r--r-- | includes/rts/storage/InfoTables.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/rts/storage/InfoTables.h b/includes/rts/storage/InfoTables.h index 3890d49a8e..250f7c76d7 100644 --- a/includes/rts/storage/InfoTables.h +++ b/includes/rts/storage/InfoTables.h @@ -16,23 +16,9 @@ relative to the info pointer, so that we can generate position-independent code. - Note [x86-64-relative] - There is a complication on the x86_64 platform, where pointeres are - 64 bits, but the tools don't support 64-bit relative relocations. - However, the default memory model (small) ensures that all symbols - have values in the lower 2Gb of the address space, so offsets all - fit in 32 bits. Hence we can use 32-bit offset fields. - - Somewhere between binutils-2.16.1 and binutils-2.16.91.0.6, - support for 64-bit PC-relative relocations was added, so maybe this - hackery can go away sometime. ------------------------------------------------------------------------- */ -#if x86_64_TARGET_ARCH -#define OFFSET_FIELD(n) StgHalfInt n; StgHalfWord __pad_##n -#else #define OFFSET_FIELD(n) StgInt n -#endif /* ----------------------------------------------------------------------------- Profiling info |