瀏覽代碼

[PATCH] m68knommu: include unused sections in linker script

Include the unused sections in the m68knommu linker scripts.
Needed for modules support.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Greg Ungerer 18 年之前
父節點
當前提交
56591b9961
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      arch/m68knommu/kernel/vmlinux.lds.S

+ 10 - 0
arch/m68knommu/kernel/vmlinux.lds.S

@@ -87,6 +87,16 @@ SECTIONS {
 		*(__ksymtab_gpl)
 		*(__ksymtab_gpl)
 		__stop___ksymtab_gpl = .;
 		__stop___ksymtab_gpl = .;
 
 
+		/* Kernel symbol table: Normal unused symbols */
+		__start___ksymtab_unused = .;
+		*(__ksymtab_unused)
+		__stop___ksymtab_unused = .;
+
+		/* Kernel symbol table: GPL-only unused symbols */
+		__start___ksymtab_unused_gpl = .;
+		*(__ksymtab_unused_gpl)
+		__stop___ksymtab_unused_gpl = .;
+
 		/* Kernel symbol table: GPL-future symbols */
 		/* Kernel symbol table: GPL-future symbols */
 		__start___ksymtab_gpl_future = .;
 		__start___ksymtab_gpl_future = .;
 		*(__ksymtab_gpl_future)
 		*(__ksymtab_gpl_future)