Skip to content

Commit 6434efb

Browse files
keessuryasaimadhu
authored andcommitted
s390: Move RO_DATA into "text" PT_LOAD Program Header
In preparation for moving NOTES into RO_DATA, move RO_DATA back into the "text" PT_LOAD Program Header, as done with other architectures. The "data" PT_LOAD now starts with the writable data section. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: linux-alpha@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-c6x-dev@linux-c6x.org Cc: linux-ia64@vger.kernel.org Cc: linux-s390@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Michal Simek <monstr@monstr.eu> Cc: Rick Edgecombe <rick.p.edgecombe@intel.com> Cc: Segher Boessenkool <segher@kernel.crashing.org> Cc: Will Deacon <will@kernel.org> Cc: x86-ml <x86@kernel.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Link: https://lkml.kernel.org/r/20191029211351.13243-7-keescook@chromium.org
1 parent 430c6b2 commit 6434efb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/s390/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SECTIONS
5252

5353
NOTES :text :note
5454

55-
.dummy : { *(.dummy) } :data
55+
.dummy : { *(.dummy) } :text
5656

5757
RO_DATA_SECTION(PAGE_SIZE)
5858

@@ -64,7 +64,7 @@ SECTIONS
6464
.data..ro_after_init : {
6565
*(.data..ro_after_init)
6666
JUMP_TABLE_DATA
67-
}
67+
} :data
6868
EXCEPTION_TABLE(16)
6969
. = ALIGN(PAGE_SIZE);
7070
__end_ro_after_init = .;

0 commit comments

Comments
 (0)