Revert "bionic: loader: Extend GNU_RELRO protection"
Revert submission 2803156-loader_crt_pad_segment
Reason for revert: b/324952273
Reverted changes: /q/submissionid:2803156-loader_crt_pad_segment
Change-Id: I22d4ae1972c5de7da908eb090a2fea5565ead88b
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 60c8e31..389e77d 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -3408,7 +3408,7 @@
}
bool soinfo::protect_relro() {
- if (phdr_table_protect_gnu_relro(phdr, phnum, load_bias, should_pad_segments_) < 0) {
+ if (phdr_table_protect_gnu_relro(phdr, phnum, load_bias) < 0) {
DL_ERR("can't enable GNU RELRO protection for \"%s\": %s",
get_realpath(), strerror(errno));
return false;