Revert "elf: Remove the 1-page gap before the RELRO segment"
authorAlan Modra <amodra@gmail.com>
Sat, 5 Feb 2022 09:36:52 +0000 (20:06 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 7 Feb 2022 03:12:41 +0000 (13:42 +1030)
commit6a9d08661b361e497baa76dd6d8685f2cb593adb
tree94483fd58d6262edc6d61f7da0c165843af80f4c
parent5197c88e2a8a17f7a67ce683df068b5bdf619427
Revert "elf: Remove the 1-page gap before the RELRO segment"

This reverts commit 2f83249c13d86065b4c7cdb198ea871017b4bba1.

PR ld/28743
* ldlang.c (lang_size_relro_segment_1): Revert 2022-01-10 changes.
* testsuite/ld-i386/pr20830.d: Likewise.
* testsuite/ld-s390/gotreloc_64-relro-1.dd: Likewise.
* testsuite/ld-x86-64/pr14207.d: Likewise.
* testsuite/ld-x86-64/pr18176.d: Likewise.
* testsuite/ld-x86-64/pr20830a-now.d: Likewise.
* testsuite/ld-x86-64/pr20830a.d: Likewise.
* testsuite/ld-x86-64/pr20830b-now.d: Likewise.
* testsuite/ld-x86-64/pr20830b.d: Likewise.
* testsuite/ld-x86-64/pr21038a-now.d: Likewise.
* testsuite/ld-x86-64/pr21038a.d: Likewise.
* testsuite/ld-x86-64/pr21038b-now.d: Likewise.
* testsuite/ld-x86-64/pr21038c-now.d: Likewise.
* testsuite/ld-x86-64/pr21038c.d: Likewise.
14 files changed:
ld/ldlang.c
ld/testsuite/ld-i386/pr20830.d
ld/testsuite/ld-s390/gotreloc_64-relro-1.dd
ld/testsuite/ld-x86-64/pr14207.d
ld/testsuite/ld-x86-64/pr18176.d
ld/testsuite/ld-x86-64/pr20830a-now.d
ld/testsuite/ld-x86-64/pr20830a.d
ld/testsuite/ld-x86-64/pr20830b-now.d
ld/testsuite/ld-x86-64/pr20830b.d
ld/testsuite/ld-x86-64/pr21038a-now.d
ld/testsuite/ld-x86-64/pr21038a.d
ld/testsuite/ld-x86-64/pr21038b-now.d
ld/testsuite/ld-x86-64/pr21038c-now.d
ld/testsuite/ld-x86-64/pr21038c.d