mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibELF: perror on failed mmap in load_program_headers (#5159)
This commit is contained in:
parent
3f5532d43e
commit
c33d50872e
Notes:
sideshowbarker
2024-07-18 22:46:42 +09:00
Author: https://github.com/Jorropo
Commit: c33d50872e
Pull-request: https://github.com/SerenityOS/serenity/pull/5159
1 changed files with 1 additions and 0 deletions
|
@ -298,6 +298,7 @@ void DynamicLoader::load_program_headers()
|
||||||
region->offset(),
|
region->offset(),
|
||||||
String::formatted("{}: .text", m_filename).characters());
|
String::formatted("{}: .text", m_filename).characters());
|
||||||
if (MAP_FAILED == text_segment_begin) {
|
if (MAP_FAILED == text_segment_begin) {
|
||||||
|
perror("mmap text / initial segment");
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
ASSERT(requested_load_address == nullptr || requested_load_address == text_segment_begin);
|
ASSERT(requested_load_address == nullptr || requested_load_address == text_segment_begin);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue