mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibELF: Fix incorrect error message
This commit is contained in:
parent
90cd11fa8c
commit
2dbd3f83c1
Notes:
sideshowbarker
2024-07-18 11:11:16 +09:00
Author: https://github.com/gunnarbeutner
Commit: 2dbd3f83c1
Pull-request: https://github.com/SerenityOS/serenity/pull/8348
Reviewed-by: https://github.com/Cleverking2003
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ Result<NonnullRefPtr<DynamicObject>, DlErrorMessage> DynamicLoader::load_stage_3
|
|||
|
||||
if (m_relro_segment_size) {
|
||||
if (mprotect(m_relro_segment_address.as_ptr(), m_relro_segment_size, PROT_READ) < 0) {
|
||||
return DlErrorMessage { String::formatted("mprotect .text: PROT_READ: {}", strerror(errno)) };
|
||||
return DlErrorMessage { String::formatted("mprotect .relro: PROT_READ: {}", strerror(errno)) };
|
||||
}
|
||||
|
||||
#if __serenity__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue