summaryrefslogtreecommitdiffstats
path: root/compiler/compiler.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-07 16:09:30 -0700
committerAndreas Gampe <agampe@google.com>2015-04-07 16:43:08 -0700
commit3c54b0023fca579aae006dfa607fb14de5846c42 (patch)
tree7b996231875fdfd54855a9aa86fe2494cdee1ec5 /compiler/compiler.h
parent425ee0e1103b52bb72132df64f503725d1a15300 (diff)
downloadart-3c54b0023fca579aae006dfa607fb14de5846c42.tar.gz
art-3c54b0023fca579aae006dfa607fb14de5846c42.tar.bz2
art-3c54b0023fca579aae006dfa607fb14de5846c42.zip
ART: Fix 64-bit ELF file support
The API wasn't cross-compile-safe, 32-bit patchoat would fail for negative delta applied to a 64-bit ELF file. Add 64-bit ELF file output to the compilers, behind a flag, currently off by default (preserving current behavior). Bug: 20095017 Change-Id: I2cde7b4c7cc83413c76692d7b745868d644a604c
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r--compiler/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h
index 6ec39f9605..a04641e3fa 100644
--- a/compiler/compiler.h
+++ b/compiler/compiler.h
@@ -107,6 +107,9 @@ class Compiler {
return driver_;
}
+ // Whether to produce 64-bit ELF files for 64-bit targets. Leave this off for now.
+ static constexpr bool kProduce64BitELFFiles = false;
+
private:
CompilerDriver* const driver_;
const uint64_t maximum_compilation_time_before_warning_;