1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:08:13 +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

@ -332,7 +332,7 @@ Image::SortedSymbol* Image::find_sorted_symbol(FlatPtr address) const
return &m_sorted_symbols[index];
}
Optional<Image::Symbol> Image::find_symbol(u32 address, u32* out_offset) const
Optional<Image::Symbol> Image::find_symbol(FlatPtr address, u32* out_offset) const
{
auto symbol_count = this->symbol_count();
if (!symbol_count)
@ -358,7 +358,7 @@ NEVER_INLINE void Image::sort_symbols() const
}
#ifndef KERNEL
String Image::symbolicate(u32 address, u32* out_offset) const
String Image::symbolicate(FlatPtr address, u32* out_offset) const
{
auto symbol_count = this->symbol_count();
if (!symbol_count) {