[lld] r241370 - [ELF/AArch64] Set correct loader name in linking context
Adhemerval Zanella
adhemerval.zanella at linaro.org
Fri Jul 3 14:21:39 PDT 2015
Author: azanella
Date: Fri Jul 3 16:21:39 2015
New Revision: 241370
URL: http://llvm.org/viewvc/llvm-project?rev=241370&view=rev
Log:
[ELF/AArch64] Set correct loader name in linking context
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.
Modified:
lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h?rev=241370&r1=241369&r2=241370&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/AArch64LinkingContext.h Fri Jul 3 16:21:39 2015
@@ -89,6 +89,11 @@ public:
return false;
}
}
+
+ /// \brief The path to the dynamic interpreter
+ StringRef getDefaultInterpreter() const override {
+ return "/lib/ld-linux-aarch64.so.1";
+ }
};
} // end namespace elf
} // end namespace lld
More information about the llvm-commits
mailing list