mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibJIT: Fix 32-bit build
Cast through the integer of an appropriate size. This still generates a 64-bit ELF image.
This commit is contained in:
parent
66f52d6db9
commit
8c1f87a869
|
@ -26,7 +26,7 @@ Optional<FixedArray<u8>> build_gdb_image(ReadonlyBytes code, StringView file_sym
|
|||
auto const text = sections.build_nobits([&](Elf64_Shdr& text) {
|
||||
text.sh_name = section_names.insert(".text"sv);
|
||||
text.sh_flags = SHF_EXECINSTR | SHF_ALLOC;
|
||||
text.sh_addr = bit_cast<u64>(code.offset(0));
|
||||
text.sh_addr = bit_cast<uintptr_t>(code.offset(0));
|
||||
text.sh_size = code.size();
|
||||
text.sh_link = 0;
|
||||
text.sh_info = 0;
|
||||
|
|
Loading…
Reference in a new issue