Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build a file with -m32



In article <1ogr7b1.g36ee44eiqikM%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>
>> Any advice on how I could modify the amd64 kernel build so that a 
>> given file is built with -m32?
>
>I tried in sys/arch/amd64/conf/Makefile.amd64
>COPTS.multiboot2_32.c=  -m32
>
>The -m32 is present where I expected it, but:
>cc1: error: code model 'kernel' not supported in the 32 bit mode
>
>That may not be the way forward.

Perhaps kernel mode is not needed in 32 bit mode, revert to small and then
also perhaps add the no-floating-point flags that the x86 kernel adds

COPTS.multiboot2_32.c=  -m32 -mcmodel=small -msoft-float -mno-mmx \
    -mno-sse -mno-avx

christos



Home | Main Index | Thread Index | Old Index