1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-29 11:24:36 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-12 12:38:30 +09:00
parent 5484e00391
commit 4613d5a5ea

20
mold.h
View File

@ -964,6 +964,26 @@ public:
std::span<ElfShdr> elf_sections;
std::vector<Symbol *> symbols;
std::atomic_bool is_alive = ATOMIC_VAR_INIT(false);
std::string_view get_section_name(const ElfShdr &shdr) const {
return obj.get_section_name(shdr);
}
std::string_view get_string(const ElfShdr &shdr) const {
return obj.get_string(shdr);
}
std::string_view get_string(u32 idx) const {
return obj.get_string(idx);
}
template<typename T> std::span<T> get_data(const ElfShdr &shdr) const {
return obj.get_data<T>(shdr);
}
template<typename T> std::span<T> get_data(u32 idx) const {
return obj.get_data<T>(idx);
}
};
class ObjectFile : public InputFile {