Skip to content

Commit 94174c9

Browse files
keessuryasaimadhu
authored andcommitted
xtensa: Move EXCEPTION_TABLE to RO_DATA segment
Since the EXCEPTION_TABLE is read-only, collapse it into RO_DATA. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Max Filippov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: [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]
1 parent 4e9e559 commit 94174c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/xtensa/kernel/vmlinux.lds.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
1515
*/
1616

17+
#define RO_EXCEPTION_TABLE_ALIGN 16
18+
1719
#include <asm-generic/vmlinux.lds.h>
1820
#include <asm/page.h>
1921
#include <asm/thread_info.h>
@@ -130,7 +132,6 @@ SECTIONS
130132

131133
.fixup : { *(.fixup) }
132134

133-
EXCEPTION_TABLE(16)
134135
/* Data section */
135136

136137
_sdata = .;

0 commit comments

Comments
 (0)