mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibELF: Fix incorrect error message
This commit is contained in:
parent
90cd11fa8c
commit
2dbd3f83c1
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