mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:24:58 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue