1
Fork 0
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:
Gunnar Beutner 2021-06-30 19:42:25 +02:00 committed by Andreas Kling
parent 90cd11fa8c
commit 2dbd3f83c1

View file

@ -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__