parent
133933bb42
commit
4d200e3859
|
@ -60,12 +60,6 @@ public:
|
|||
ARMELFFile(std::unique_ptr<MemoryBuffer> mb, ARMLinkingContext &ctx)
|
||||
: ELFFile<ELFT>(std::move(mb), ctx) {}
|
||||
|
||||
static ErrorOr<std::unique_ptr<ARMELFFile>>
|
||||
create(std::unique_ptr<MemoryBuffer> mb, ARMLinkingContext &ctx) {
|
||||
return std::unique_ptr<ARMELFFile<ELFT>>(
|
||||
new ARMELFFile<ELFT>(std::move(mb), ctx));
|
||||
}
|
||||
|
||||
protected:
|
||||
/// Returns initial addend; for ARM it is 0, because it is read
|
||||
/// during the relocations applying
|
||||
|
|
|
@ -102,9 +102,6 @@ public:
|
|||
_ordinal(0), _doStringsMerge(ctx.mergeCommonStrings()),
|
||||
_useWrap(ctx.wrapCalls().size()), _ctx(ctx) {}
|
||||
|
||||
static ErrorOr<std::unique_ptr<ELFFile>>
|
||||
create(std::unique_ptr<MemoryBuffer> mb, ELFLinkingContext &ctx);
|
||||
|
||||
virtual Reference::KindArch kindArch();
|
||||
|
||||
/// \brief Create symbols from LinkingContext.
|
||||
|
@ -478,13 +475,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
template <class ELFT>
|
||||
ErrorOr<std::unique_ptr<ELFFile<ELFT>>>
|
||||
ELFFile<ELFT>::create(std::unique_ptr<MemoryBuffer> mb,
|
||||
ELFLinkingContext &ctx) {
|
||||
return llvm::make_unique<ELFFile<ELFT>>(std::move(mb), ctx);
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
std::error_code ELFFile<ELFT>::doParse() {
|
||||
std::error_code ec;
|
||||
|
|
|
@ -112,12 +112,6 @@ public:
|
|||
HexagonELFFile(std::unique_ptr<MemoryBuffer> mb, HexagonLinkingContext &ctx)
|
||||
: ELFFile<ELFT>(std::move(mb), ctx) {}
|
||||
|
||||
static ErrorOr<std::unique_ptr<HexagonELFFile>>
|
||||
create(std::unique_ptr<MemoryBuffer> mb, HexagonLinkingContext &ctx) {
|
||||
return std::unique_ptr<HexagonELFFile<ELFT>>(
|
||||
new HexagonELFFile<ELFT>(std::move(mb), ctx));
|
||||
}
|
||||
|
||||
bool isCommonSymbol(const Elf_Sym *symbol) const override {
|
||||
switch (symbol->st_shndx) {
|
||||
// Common symbols
|
||||
|
|
|
@ -91,11 +91,6 @@ public:
|
|||
MipsELFFile(std::unique_ptr<MemoryBuffer> mb, MipsLinkingContext &ctx)
|
||||
: ELFFile<ELFT>(std::move(mb), ctx) {}
|
||||
|
||||
static ErrorOr<std::unique_ptr<MipsELFFile>>
|
||||
create(std::unique_ptr<MemoryBuffer> mb, MipsLinkingContext &ctx) {
|
||||
return llvm::make_unique<MipsELFFile<ELFT>>(std::move(mb), ctx);
|
||||
}
|
||||
|
||||
bool isPIC() const {
|
||||
return this->_objFile->getHeader()->e_flags & llvm::ELF::EF_MIPS_PIC;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue