Prechádzať zdrojové kódy

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>
Roman Zippel 18 rokov pred
rodič
commit
fe6d9daf56
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      arch/m68k/kernel/vmlinux-std.lds

+ 2 - 2
arch/m68k/kernel/vmlinux-std.lds

@@ -19,6 +19,8 @@ SECTIONS
 	*(.gnu.warning)
 	*(.gnu.warning)
 	} :text = 0x4e75
 	} :text = 0x4e75
 
 
+  _etext = .;			/* End of text section */
+
   . = ALIGN(16);		/* Exception table */
   . = ALIGN(16);		/* Exception table */
   __start___ex_table = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __ex_table : { *(__ex_table) }
@@ -26,8 +28,6 @@ SECTIONS
 
 
   RODATA
   RODATA
 
 
-  _etext = .;			/* End of text section */
-
   .data : {			/* Data */
   .data : {			/* Data */
 	DATA_DATA
 	DATA_DATA
 	CONSTRUCTORS
 	CONSTRUCTORS