diff options
author | Breno Rodrigues Guimaraes <brenorg@gmail.com> | 2023-02-20 16:55:47 -0300 |
---|---|---|
committer | Breno Rodrigues Guimaraes <brenorg@gmail.com> | 2023-02-20 16:55:47 -0300 |
commit | 2ccf3c385ebc904b3cf2fa115827c82dc019300b (patch) | |
tree | fab90e86c854f239e1a2fb4cfb5c96c37595af49 | |
parent | 313c6115b7988f65d2823d37b330a91b39c8f415 (diff) | |
download | patchelf-2ccf3c385ebc904b3cf2fa115827c82dc019300b.tar.gz |
to trigger ci
-rw-r--r-- | src/patchelf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc index f194cad..3e632e5 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -799,7 +799,7 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsLibrary() bool needNewSegment = true; auto& lastSeg = phdrs.back(); /* Try to extend the last segment to include replaced sections */ - if (phdrs.size() && + if (!phdrs.empty() && rdi(lastSeg.p_type) == PT_LOAD && rdi(lastSeg.p_flags) == (PF_R | PF_W) && rdi(lastSeg.p_align) == getPageSize()) { |