提交 fe6d9daf 编写于 作者: R Roman Zippel 提交者: Linus Torvalds

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: NRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a5f442b2
...@@ -19,6 +19,8 @@ SECTIONS ...@@ -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 ...@@ -26,8 +28,6 @@ SECTIONS
RODATA RODATA
_etext = .; /* End of text section */
.data : { /* Data */ .data : { /* Data */
DATA_DATA DATA_DATA
CONSTRUCTORS CONSTRUCTORS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册