浏览代码

Blackfin arch: parse input sections properly when using -ffunction-sections/-fdata-sections

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Mike Frysinger 17 年之前
父节点
当前提交
fbeb7370b6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      arch/blackfin/kernel/vmlinux.lds.S

+ 3 - 1
arch/blackfin/kernel/vmlinux.lds.S

@@ -46,6 +46,7 @@ SECTIONS
 		__text = .;
 		_text = .;
 		__stext = .;
+		*(.text.*)
 		TEXT_TEXT
 		SCHED_TEXT
 		LOCK_TEXT
@@ -73,6 +74,7 @@ SECTIONS
 		. = ALIGN(THREAD_SIZE);
 		*(.data.init_task)
 		DATA_DATA
+		*(.data.*)
 		CONSTRUCTORS
 
 		. = ALIGN(32);
@@ -164,7 +166,7 @@ SECTIONS
 	{
 		. = ALIGN(4);
 		___bss_start = .;
-		*(.bss)
+		*(.bss .bss.*)
 		*(COMMON)
 		. = ALIGN(4);
 		___bss_stop = .;