Revert "RELAND: bionic: loader: Extend GNU_RELRO protection"
Revert submission 2966884
Reason for revert: b/328266487
Reverted changes: /q/submissionid:2966884
Bug: 328266487
Change-Id: I3e61443302bf7fd8f58c843c9d7dc3c747897959
diff --git a/linker/linker.cpp b/linker/linker.cpp
index e54a524..4fb9d5b 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -3418,7 +3418,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;