mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
Make InputSection object smaller
This commit is contained in:
parent
eecdbda923
commit
cec4a24214
8
mold.h
8
mold.h
@ -232,17 +232,15 @@ public:
|
||||
std::string_view contents;
|
||||
|
||||
std::span<ElfRel<E>> rels;
|
||||
std::vector<bool> has_fragments;
|
||||
std::vector<u8> has_fragments;
|
||||
std::vector<SectionFragmentRef<E>> rel_fragments;
|
||||
std::vector<u16> rel_types;
|
||||
std::vector<u8> rel_types;
|
||||
std::span<FdeRecord<E>> fdes;
|
||||
|
||||
u32 offset = -1;
|
||||
u32 section_idx = -1;
|
||||
u32 reldyn_offset = 0;
|
||||
|
||||
bool is_ehframe = false;
|
||||
|
||||
// For COMDAT de-duplication and garbage collection
|
||||
std::atomic_bool is_alive = true;
|
||||
|
||||
@ -255,6 +253,8 @@ public:
|
||||
bool icf_eligible = false;
|
||||
bool icf_leaf = false;
|
||||
|
||||
bool is_ehframe = false;
|
||||
|
||||
private:
|
||||
typedef enum { NONE, ERROR, COPYREL, PLT, DYNREL, BASEREL } Action;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user