diff --git a/mold.h b/mold.h index f08ae2cd..57f32aeb 100644 --- a/mold.h +++ b/mold.h @@ -367,7 +367,7 @@ private: class GotSection : public OutputChunk { public: - typedef enum : u8 { REGULAR, TP } GotType; + typedef enum : u8 { REGULAR, TP } Kind; GotSection() { name = ".got"; @@ -382,7 +382,7 @@ public: u64 get_size() const override { return size; } u64 size = 0; - std::vector> symbols; + std::vector> symbols; }; class ShstrtabSection : public OutputChunk { diff --git a/output_chunks.cc b/output_chunks.cc index f628c368..d35ff00e 100644 --- a/output_chunks.cc +++ b/output_chunks.cc @@ -171,10 +171,10 @@ void GotSection::relocate(u8 *buf) { buf += shdr.sh_offset; for (auto pair : symbols) { - GotType type = pair.first; + Kind kind = pair.first; Symbol *sym = pair.second; - if (type == REGULAR) + if (kind == REGULAR) *(u64 *)buf = sym->addr; else *(u64 *)buf = sym->addr - out::tls_end;