Skip to content

Commit

Permalink
m68k: Dont include RODATA into text segment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Aug 23, 2007
1 parent a5f442b commit fe6d9da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ SECTIONS
*(.gnu.warning)
} :text = 0x4e75

_etext = .; /* End of text section */

. = ALIGN(16); /* Exception table */
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;

RODATA

_etext = .; /* End of text section */

.data : { /* Data */
DATA_DATA
CONSTRUCTORS
Expand Down

0 comments on commit fe6d9da

Please sign in to comment.