mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibELF: perror on failed mmap in load_program_headers (#5159)
This commit is contained in:
parent
3f5532d43e
commit
c33d50872e
1 changed files with 1 additions and 0 deletions
|
@ -298,6 +298,7 @@ void DynamicLoader::load_program_headers()
|
|||
region->offset(),
|
||||
String::formatted("{}: .text", m_filename).characters());
|
||||
if (MAP_FAILED == text_segment_begin) {
|
||||
perror("mmap text / initial segment");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
ASSERT(requested_load_address == nullptr || requested_load_address == text_segment_begin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue