提交 b3cfe0cb 编写于 作者: H Haavard Skinnemoen

[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: NHaavard Skinnemoen <hskinnemoen@atmel.com>
上级 a492dbb9
...@@ -35,7 +35,7 @@ SECTIONS ...@@ -35,7 +35,7 @@ SECTIONS
_einittext = .; _einittext = .;
. = ALIGN(4); . = ALIGN(4);
__tagtable_begin = .; __tagtable_begin = .;
*(.taglist) *(.taglist.init)
__tagtable_end = .; __tagtable_end = .;
*(.init.data) *(.init.data)
. = ALIGN(16); . = ALIGN(16);
......
...@@ -110,7 +110,7 @@ struct tagtable { ...@@ -110,7 +110,7 @@ struct tagtable {
int (*parse)(struct tag *); int (*parse)(struct tag *);
}; };
#define __tag __attribute_used__ __attribute__((__section__(".taglist"))) #define __tag __attribute_used__ __attribute__((__section__(".taglist.init")))
#define __tagtable(tag, fn) \ #define __tagtable(tag, fn) \
static struct tagtable __tagtable_##fn __tag = { tag, fn } static struct tagtable __tagtable_##fn __tag = { tag, fn }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册