On Mon, Nov 3, 2014 at 12:12 AM, Joerg Sonnenberger <jo...@britannica.bec.de> wrote: > On Sat, Nov 01, 2014 at 11:58:55AM +0000, Masao Uebayashi wrote: >> Module Name: src >> Committed By: uebayasi >> Date: Sat Nov 1 11:58:55 UTC 2014 >> >> Modified Files: >> src/sys/arch/amd64/conf: kern.ldscript kern.ldscript.2MB >> kern.ldscript.Xen >> src/sys/arch/i386/conf: kern.ldscript kern.ldscript.4MB >> kern.ldscript.Xen >> >> Log Message: >> amd64, i386: Don't expose .data.{read_mostly,cacheline_aligned} sections > > Huh? There is no reason for such hacks. Please discuss such changes > first.
This is how mips ldscript does. Those two sections are collected and aligned by linker. After doing that, is there still any reason to expose the sections? If you point out one, I'll revert the changes and document them in the files. alpha and arm ldscripts don't define .data.{read_mostly,cacheline_alined}, BTW.