1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibELF+Utilities: Avoid truncating 64-bit values

This fixes displaying 64-bit addresses in readelf and also fixes
showing backtraces from core dumps on x86_64.
This commit is contained in:
Gunnar Beutner 2021-07-22 00:47:30 +02:00 committed by Andreas Kling
parent 36c3927169
commit db1c5c4830
6 changed files with 37 additions and 36 deletions

View file

@ -50,8 +50,8 @@ struct [[gnu::packed]] ThreadInfo {
struct [[gnu::packed]] MemoryRegionInfo {
NotesEntryHeader header;
uint32_t region_start;
uint32_t region_end;
uint64_t region_start;
uint64_t region_end;
uint16_t program_header_index;
char region_name[]; // Null terminated