浏览代码

[AVR32] Fix section mismatch .taglist -> .init.text

Rename .taglist to .taglist.init to silence section mismatch warnings.
The .taglist.init section was already placed in the .init output
section along with .init.text, so the warning didn't indicate any real
problems.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Haavard Skinnemoen 18 年之前
父节点
当前提交
b3cfe0cb37
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      arch/avr32/kernel/vmlinux.lds.c
  2. 1 1
      include/asm-avr32/setup.h

+ 1 - 1
arch/avr32/kernel/vmlinux.lds.c

@@ -35,7 +35,7 @@ SECTIONS
 			_einittext = .;
 		. = ALIGN(4);
 		__tagtable_begin = .;
-			*(.taglist)
+			*(.taglist.init)
 		__tagtable_end = .;
 			*(.init.data)
 		. = ALIGN(16);

+ 1 - 1
include/asm-avr32/setup.h

@@ -110,7 +110,7 @@ struct tagtable {
 	int	(*parse)(struct tag *);
 };
 
-#define __tag __attribute_used__ __attribute__((__section__(".taglist")))
+#define __tag __attribute_used__ __attribute__((__section__(".taglist.init")))
 #define __tagtable(tag, fn)						\
 	static struct tagtable __tagtable_##fn __tag = { tag, fn }