vmlinux.lds.h: Replace RODATA with RO_DATA

There's no reason to keep the RODATA macro: replace the callers with
the expected RO_DATA macro.

Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Michael Ellerman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rick Edgecombe <[email protected]>
Cc: Segher Boessenkool <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: x86-ml <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
Kees Cook authored and Borislav Petkov committed 2019-11-04 15:53:15 +01:00
1 parent eaf937075c
commit c82318254d
7 files changed
+7 -9

No files matched your search

+1 -1
View 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 */
+1 -1
View File
@@ -104,7 +104,7 @@ SECTIONS {
code_continues2 : {
} :text
RODATA
RO_DATA(4096)
.opd : AT(ADDR(.opd) - LOAD_OFFSET) {
__start_opd = .;
+1 -1
View File
@@ -51,7 +51,7 @@ SECTIONS {
}
. = ALIGN(16);
RODATA
RO_DATA(4096)
EXCEPTION_TABLE(16)
/*
+1 -1
View File
@@ -82,7 +82,7 @@ SECTIONS
}
_sdata = .; /* Start of data section */
RODATA
RO_DATA(4096)
/* writeable */
.data : { /* Data */
+1 -1
View File
@@ -9,7 +9,7 @@
_sdata = .;
PROVIDE (sdata = .);
RODATA
RO_DATA(4096)
.unprotected : { *(.unprotected) }
. = ALIGN(4096);
+1 -1
View File
@@ -124,7 +124,7 @@ SECTIONS
. = ALIGN(16);
RODATA
RO_DATA(4096)
/* Relocation table */
+1 -3
View File
@@ -518,9 +518,7 @@
. = 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)
/*