1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-15 04:10:40 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-22 17:00:46 +09:00
parent 1ea84efaa9
commit 9b9b7d2a62
2 changed files with 2 additions and 4 deletions

1
mold.h
View File

@ -303,6 +303,7 @@ public:
: name(name) {
hdr.sh_flags = flags;
hdr.sh_type = type;
all_instances.push_back(this);
}
void copy_to(uint8_t *buf) override {

View File

@ -74,8 +74,5 @@ OutputSection *OutputSection::get_instance(InputSection *isec) {
std::unique_lock unique_lock(mu);
if (OutputSection *osec = find())
return osec;
OutputSection *osec = new OutputSection(iname, iflags, isec->hdr->sh_type);
OutputSection::all_instances.push_back(osec);
return osec;
return new OutputSection(iname, iflags, isec->hdr->sh_type);
}