mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibELF+Userland: Move a few functions to Elf::Image
These were originally in `readelf`, but they became useful in `file` as well, so they are now available in Elf::Image with a slightly revised API.
This commit is contained in:
parent
097902bd06
commit
d1adf5bc5e
Notes:
sideshowbarker
2024-07-18 02:07:30 +09:00
Author: https://github.com/vkoskiv
Commit: d1adf5bc5e
Pull-request: https://github.com/SerenityOS/serenity/pull/10524
Reviewed-by: https://github.com/bgianfo
3 changed files with 93 additions and 71 deletions
|
@ -227,6 +227,10 @@ public:
|
|||
FlatPtr base_address() const { return (FlatPtr)m_buffer; }
|
||||
size_t size() const { return m_size; }
|
||||
|
||||
static Optional<StringView> object_file_type_to_string(ElfW(Half) type);
|
||||
static Optional<StringView> object_machine_type_to_string(ElfW(Half) type);
|
||||
static Optional<StringView> object_abi_type_to_string(Elf_Byte type);
|
||||
|
||||
bool has_symbols() const { return symbol_count(); }
|
||||
#ifndef KERNEL
|
||||
Optional<Symbol> find_demangled_function(const StringView& name) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue