mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 10:31:43 +01:00
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:
1 parent
eaf937075c
commit
c82318254d
7 files changed
+7
-9
No files matched your search
@@ -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 */
|
||||
|
||||
@@ -104,7 +104,7 @@ SECTIONS {
|
||||
code_continues2 : {
|
||||
} :text
|
||||
|
||||
RODATA
|
||||
RO_DATA(4096)
|
||||
|
||||
.opd : AT(ADDR(.opd) - LOAD_OFFSET) {
|
||||
__start_opd = .;
|
||||
|
||||
@@ -51,7 +51,7 @@ SECTIONS {
|
||||
}
|
||||
|
||||
. = ALIGN(16);
|
||||
RODATA
|
||||
RO_DATA(4096)
|
||||
EXCEPTION_TABLE(16)
|
||||
|
||||
/*
|
||||
|
||||
@@ -82,7 +82,7 @@ SECTIONS
|
||||
}
|
||||
|
||||
_sdata = .; /* Start of data section */
|
||||
RODATA
|
||||
RO_DATA(4096)
|
||||
|
||||
/* writeable */
|
||||
.data : { /* Data */
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
_sdata = .;
|
||||
PROVIDE (sdata = .);
|
||||
|
||||
RODATA
|
||||
RO_DATA(4096)
|
||||
|
||||
.unprotected : { *(.unprotected) }
|
||||
. = ALIGN(4096);
|
||||
|
||||
@@ -124,7 +124,7 @@ SECTIONS
|
||||
|
||||
. = ALIGN(16);
|
||||
|
||||
RODATA
|
||||
RO_DATA(4096)
|
||||
|
||||
/* Relocation table */
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user