mirror of
https://github.com/rui314/mold.git
synced 2024-10-05 09:07:10 +03:00
Start implementing .dynamic section
This commit is contained in:
parent
bf987e783e
commit
5568e69d92
11
mold.h
11
mold.h
@ -452,6 +452,16 @@ private:
|
|||||||
std::string contents;
|
std::string contents;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class DynamicSection : public OutputChunk {
|
||||||
|
public:
|
||||||
|
DynamicSection() : OutputChunk(SYNTHETIC) {
|
||||||
|
this->name = ".dynamic";
|
||||||
|
shdr.sh_flags = llvm::ELF::SHF_ALLOC | llvm::ELF::SHF_WRITE;
|
||||||
|
shdr.sh_type = llvm::ELF::SHT_DYNAMIC;
|
||||||
|
shdr.sh_addralign = 8;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class SymtabSection : public OutputChunk {
|
class SymtabSection : public OutputChunk {
|
||||||
public:
|
public:
|
||||||
SymtabSection() : OutputChunk(SYNTHETIC) {
|
SymtabSection() : OutputChunk(SYNTHETIC) {
|
||||||
@ -507,6 +517,7 @@ inline GotSection *got;
|
|||||||
inline GotSection *gotplt;
|
inline GotSection *gotplt;
|
||||||
inline PltSection *plt;
|
inline PltSection *plt;
|
||||||
inline RelPltSection *relplt;
|
inline RelPltSection *relplt;
|
||||||
|
inline DynamicSection *dynamic;
|
||||||
inline ShstrtabSection *shstrtab;
|
inline ShstrtabSection *shstrtab;
|
||||||
inline SymtabSection *symtab;
|
inline SymtabSection *symtab;
|
||||||
inline StrtabSection *strtab;
|
inline StrtabSection *strtab;
|
||||||
|
Loading…
Reference in New Issue
Block a user