1
Fork 0
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:
Jorropo 2021-01-29 08:50:43 +01:00 committed by GitHub
parent 3f5532d43e
commit c33d50872e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);