CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2013/04/01 13:12:14

Modified files:
        sys/arch/loongson/conf: Makefile.loongson 
        sys/arch/octeon/conf: Makefile.octeon 
        sys/arch/sgi/conf: Makefile.sgi 

Log message:
Build mips kernels with -G 0, to disable use of so-called `small' data and
bss sections. The current kernel linker script is not gp-friendly enough for
that; and while gas 2.15 was not attempting to output gp-relative relocations
for variables which might have ended up in .sdata or .sbss, gas 2.17 will,
and the kernel will fail to link.

To be improved eventually with a better kernel ld script putting the
gp-addressable sections close enough to gp... and making sure kernel gp is
reloaded in all the userland->kernel code paths which might need gp in the
kernel.

Reply via email to