vmlinux.lds.h: Replace RODATA with RO_DATA
authorKees Cook <keescook@chromium.org>
Tue, 29 Oct 2019 21:13:33 +0000 (14:13 -0700)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Nov 2019 14:53:15 +0000 (15:53 +0100)
There's no reason to keep the RODATA macro: replace the callers with
the expected RO_DATA macro.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
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-12-keescook@chromium.org
arch/alpha/kernel/vmlinux.lds.S
arch/ia64/kernel/vmlinux.lds.S
arch/microblaze/kernel/vmlinux.lds.S
arch/mips/kernel/vmlinux.lds.S
arch/um/include/asm/common.lds.S
arch/xtensa/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h

index bf28043485f6e369a5ca836e4336b9df2e884cee..af411817dd7d5b20bab9123a4bc13e108fae08c1 100644 (file)
@@ -34,7 +34,7 @@ SECTIONS
        swapper_pg_dir = SWAPPER_PGD;
        _etext = .;     /* End of text section */
 
-       RODATA
+       RO_DATA(4096)
        EXCEPTION_TABLE(16)
 
        /* Will be freed after init */
index fae077595756bbb52b612891e973cfe3d3f8901c..11d5115bc44d2378ba411fa65d5582475b3f92bd 100644 (file)
@@ -104,7 +104,7 @@ SECTIONS {
        code_continues2 : {
        } :text
 
-       RODATA
+       RO_DATA(4096)
 
        .opd : AT(ADDR(.opd) - LOAD_OFFSET) {
                __start_opd = .;
index d008e50bb212a7284f44d17d6070a46a03672d0f..2299694748ea52896999c29a22d9e6282755b463 100644 (file)
@@ -51,7 +51,7 @@ SECTIONS {
        }
 
        . = ALIGN(16);
-       RODATA
+       RO_DATA(4096)
        EXCEPTION_TABLE(16)
 
        /*
index 91e566defc1689a78ebd4a96d45b0d1d121df9ab..a5f00ec73ea6e22c69b9d9039109d5d17927008c 100644 (file)
@@ -82,7 +82,7 @@ SECTIONS
        }
 
        _sdata = .;                     /* Start of data section */
-       RODATA
+       RO_DATA(4096)
 
        /* writeable */
        .data : {       /* Data */
index 91aca356095fb0fcfd83ee794928cd4c3f41570d..7145ce6999822613f7923ae936b9d70a85044de4 100644 (file)
@@ -9,7 +9,7 @@
   _sdata = .;
   PROVIDE (sdata = .);
 
-  RODATA
+  RO_DATA(4096)
 
   .unprotected : { *(.unprotected) }
   . = ALIGN(4096);
index a0a8437456956a1788c27c67c8d6308ee6e9bc60..b97e5798b9cfa368dff40bad1ced32cad5956d8c 100644 (file)
@@ -124,7 +124,7 @@ SECTIONS
 
   . = ALIGN(16);
 
-  RODATA
+  RO_DATA(4096)
 
   /*  Relocation table */
 
index dc3390ec6b60c8c3fc988ac6447c00c061af784d..a0a989fbe411aaea1c01d285249a340687b42f51 100644 (file)
        . = ALIGN((align));                                             \
        __end_rodata = .;
 
-/* RODATA & RO_DATA provided for backward compatibility.
- * All archs are supposed to use RO_DATA() */
-#define RODATA          RO_DATA_SECTION(4096)
+/* All archs are supposed to use RO_DATA() */
 #define RO_DATA(align)  RO_DATA_SECTION(align)
 
 /*