lkml.org 
[lkml]   [2008]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix section type conflict in arch/ia64/xen/xen_pv_ops.c
Takashi Iwai wrote:
> At Tue, 11 Nov 2008 09:43:27 -0800,
> Jeremy Fitzhardinge wrote:
>
>> Isaku Yamahata wrote:
>>
>>> Here is.
>>>
>>> __initdata and const cannot be always a happy pair and
>>> x86 xen has the potential issue.
>>> This patch simply removes const from data with __initdata
>>> under arch/x86/xen/.
>>>
>>>
>> No, I think the proper fix is to use __initconst.
>>
>
> The problem is that it depends on gcc version which section it goes.
> Thus __initconst could break some gcc versions as well.
>

Why? __initconst explicitly puts it in .init.rodata.

J


\
 
 \ /
  Last update: 2008-11-11 19:51    [W:0.054 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site