mirror of
https://github.com/rui314/mold.git
synced 2024-12-29 11:24:36 +03:00
temporary
This commit is contained in:
parent
5484e00391
commit
4613d5a5ea
20
mold.h
20
mold.h
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user