[PATCH] D10929: [ELF/AArch64] Set correct loader name in linking context
Adhemerval Zanella
adhemerval.zanella at linaro.org
Fri Jul 3 08:10:37 PDT 2015
zatrazz created this revision.
zatrazz added reviewers: ruiu, shankar.easwaran.
zatrazz added subscribers: lld, llvm-commits.
zatrazz added a project: lld.
Herald added subscribers: rengolin, aemerson.
This patch reimplements ELFLinkingContext::getDefaultInterpreter for aarch64
with correct loader name. It is required to exclude the loader from DT_NEEDED
in shared library creation.
http://reviews.llvm.org/D10929
Files:
lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
Index: lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
===================================================================
--- lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
+++ lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
@@ -89,6 +89,11 @@
return false;
}
}
+
+ /// \brief The path to the dynamic interpreter
+ virtual StringRef getDefaultInterpreter() const override {
+ return "/lib/ld-linux-aarch64.so.1";
+ }
};
} // end namespace elf
} // end namespace lld
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10929.29022.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150703/aff294ec/attachment.bin>
More information about the llvm-commits
mailing list