mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
disasm: Use make<X86::ELFSymbolProvider> instead of naked new
This commit is contained in:
parent
ac4897d613
commit
0fecdb7904
Notes:
sideshowbarker
2024-07-19 03:29:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0fecdb7904b
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ int main(int argc, char** argv)
|
|||
NonnullRefPtr<ELF::Loader> elf_loader = ELF::Loader::create(asm_data, asm_size);
|
||||
if (elf_loader->image().is_valid()) {
|
||||
elf = elf_loader;
|
||||
symbol_provider = new X86::ELFSymbolProvider(*elf);
|
||||
symbol_provider = make<X86::ELFSymbolProvider>(*elf);
|
||||
elf->image().for_each_section_of_type(SHT_PROGBITS, [&](const ELF::Image::Section& section) {
|
||||
// FIXME: Disassemble all SHT_PROGBITS sections, not just .text.
|
||||
if (section.name() != ".text")
|
||||
|
|
Loading…
Add table
Reference in a new issue