Skip to content

Commit fe6d9da

Browse files
Roman ZippelLinus Torvalds
authored andcommitted
m68k: Dont include RODATA into text segment
Don't include RODATA into text segment as it includes the kallsyms data and can cause spurious link failures (layout differences can change the number of symbols in kallsyms, i.e. when a symbol is equal to _etext it's not included). Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a5f442b commit fe6d9da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/m68k/kernel/vmlinux-std.lds‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ SECTIONS
1919
*(.gnu.warning)
2020
} :text = 0x4e75
2121

22+
_etext = .; /* End of text section */
23+
2224
. = ALIGN(16); /* Exception table */
2325
__start___ex_table = .;
2426
__ex_table : { *(__ex_table) }
2527
__stop___ex_table = .;
2628

2729
RODATA
2830

29-
_etext = .; /* End of text section */
30-
3131
.data : { /* Data */
3232
DATA_DATA
3333
CONSTRUCTORS

0 commit comments

Comments
 (0)