Remove ExtractCodeAndPrelink and switch Portable to MCLinker
Change-Id: Ia2459c7da6b79e0a1c0f1148c6e28ad9cbbe27a2
diff --git a/src/compiler/dex/write_elf.cc b/src/compiler/dex/write_elf.cc
index a78d98e..7e3d512 100644
--- a/src/compiler/dex/write_elf.cc
+++ b/src/compiler/dex/write_elf.cc
@@ -19,12 +19,17 @@
namespace art {
class CompilerDriver;
+class DexFile;
} // namespace art
extern "C" bool WriteElf(art::CompilerDriver& driver,
+ const std::string* host_prefix,
+ bool is_host,
+ const std::vector<const art::DexFile*>& dex_files,
std::vector<uint8_t>& oat_contents,
- art::File* file) {
- return art::ElfWriter::Create(file, oat_contents, driver);
+ art::File* file)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
+ return art::ElfWriter::Create(file, oat_contents, dex_files, host_prefix, is_host, driver);
}
extern "C" bool FixupElf(art::File* file, uintptr_t oat_data_begin) {
return art::ElfWriter::Fixup(file, oat_data_begin);
@@ -34,3 +39,6 @@
size_t& oat_data_offset) {
art::ElfWriter::GetOatElfInformation(file, oat_loaded_size, oat_data_offset);
}
+extern "C" bool StripElf(art::File* file) {
+ return art::ElfWriter::Strip(file);
+}