diff --git a/chibild.h b/chibild.h index 4cc94688..2c0d9378 100644 --- a/chibild.h +++ b/chibild.h @@ -271,6 +271,7 @@ public: class OutputSection : public OutputChunk { public: OutputSection(StringRef name) : name(name) {} + OutputSection(const OutputSection &other) : name(other.name) {} void copy_to(uint8_t *buf) override { for_each(sections, [&](InputSection *isec) { isec->copy_to(buf); });