为什么需要在部分名称中添加另一个点
Why need add another dot in section name
Linux 内核:
提交 3d9a854c2dac3e888393b23ba7adafcce4d6d4b9
日期:2 月 20 日星期六 01:03:43 2010 +0100
Rename .data[.percpu][.XXX] to .data[..percpu][..XXX].
谢谢罗伯特的提醒。
在邮件列表中找到了答案
http://www.uwsg.indiana.edu/hypermail/linux/kernel/1002.2/01728.html
The problem is that with -ffunction-sections -fdata-sections gcc
creates sections like .text.head and .data.nosave
whenever someone has innocuous code like this:
static void head(...) {...}
or this:
static int nosave = 1;
somewhere in the kernel. Currently, kernel linker scripts
are confused by such names and put these sections in wrong places.
Linux 内核: 提交 3d9a854c2dac3e888393b23ba7adafcce4d6d4b9 日期:2 月 20 日星期六 01:03:43 2010 +0100
Rename .data[.percpu][.XXX] to .data[..percpu][..XXX].
谢谢罗伯特的提醒。 在邮件列表中找到了答案 http://www.uwsg.indiana.edu/hypermail/linux/kernel/1002.2/01728.html
The problem is that with -ffunction-sections -fdata-sections gcc creates sections like .text.head and .data.nosave whenever someone has innocuous code like this: static void head(...) {...} or this: static int nosave = 1; somewhere in the kernel. Currently, kernel linker scripts are confused by such names and put these sections in wrong places.