summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/Object.h
diff options
context:
space:
mode:
authorJake Ehrlich <jakehehrlich@google.com>2017-09-19 20:00:04 +0000
committerJake Ehrlich <jakehehrlich@google.com>2017-09-19 20:00:04 +0000
commit317782122c8a7d603152b47a2ac2d3f046eb8df7 (patch)
treed9837f0add3ead6ddfeb0cee7870a1e890f358d8 /llvm/tools/llvm-objcopy/Object.h
parent8f108248baafc8e8572433e7b7cb1f16985749b6 (diff)
downloadbcm5719-llvm-317782122c8a7d603152b47a2ac2d3f046eb8df7.tar.gz
bcm5719-llvm-317782122c8a7d603152b47a2ac2d3f046eb8df7.zip
Revert "[llvm-objcopy] Add support for .dynamic, .dynsym, and .dynstr"
This reverts commit r313663. Broken because overlapping-sections was reverted. llvm-svn: 313665
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.h')
-rw-r--r--llvm/tools/llvm-objcopy/Object.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/tools/llvm-objcopy/Object.h b/llvm/tools/llvm-objcopy/Object.h
index 9b144a81a8c..dff3fc40893 100644
--- a/llvm/tools/llvm-objcopy/Object.h
+++ b/llvm/tools/llvm-objcopy/Object.h
@@ -193,34 +193,6 @@ public:
}
};
-class SectionWithStrTab : public Section {
-private:
- StringTableSection *StrTab;
-
-public:
- SectionWithStrTab(llvm::ArrayRef<uint8_t> Data) : Section(Data) {}
- void setStrTab(StringTableSection *StringTable) { StrTab = StringTable; }
- void finalize() override;
- static bool classof(const SectionBase *S);
-};
-
-class DynamicSymbolTableSection : public SectionWithStrTab {
-public:
- DynamicSymbolTableSection(llvm::ArrayRef<uint8_t> Data)
- : SectionWithStrTab(Data) {}
- static bool classof(const SectionBase *S) {
- return S->Type == llvm::ELF::SHT_DYNSYM;
- }
-};
-
-class DynamicSection : public SectionWithStrTab {
-public:
- DynamicSection(llvm::ArrayRef<uint8_t> Data) : SectionWithStrTab(Data) {}
- static bool classof(const SectionBase *S) {
- return S->Type == llvm::ELF::SHT_DYNAMIC;
- }
-};
-
template <class ELFT> class Object {
private:
typedef std::unique_ptr<SectionBase> SecPtr;
@@ -237,12 +209,6 @@ private:
void readProgramHeaders(const llvm::object::ELFFile<ELFT> &ElfFile);
void readSectionHeaders(const llvm::object::ELFFile<ELFT> &ElfFile);
- SectionBase *getSection(uint16_t Index, llvm::Twine ErrMsg);
-
- template <class T>
- T *getSectionOfType(uint16_t Index, llvm::Twine IndexErrMsg,
- llvm::Twine TypeErrMsg);
-
protected:
StringTableSection *SectionNames;
SymbolTableSection *SymbolTable;
OpenPOWER on IntegriCloud