Hi Peter...

On Mon, Apr 12, 2010 at 22:59, Peter Teoh <[email protected]> wrote:
> I think u are right too....
>
> From here is the definition:
>
> arch/x86/include/asm/cache.h:
> #define __read_mostly __attribute__((__section__(".data.read_mostly")))
>
> and then the location is defined in the LDS linker script
> (arch/x86/kernel/vmlinux.lds):
>
>  CONSTRUCTORS
>  /* rarely changed data like cpu maps */
>  . = ALIGN((1 << 6)); *(.data.read_mostly)
>  /* End of data section */
>  _edata = .;
>  } :data
>
> which defined how vmlinux is created.

As always, I owe you much for explaining things I hardly get the exact
answer. Thanks a lot :)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to