Port-arm archive

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

clang and NetBSD kernel



Hi,  NetBSD/aarch64 is the only port compiled with clang and I have clang
question.  Here goes size(1) output;

NetBSD 8.99.14 (GENERIC64) #1: Sat Apr 28 01:06:14 JST 2018
   text    data     bss     dec     hex filename
6317447 2445252       0 8762699  85b54b netbsd

BSS size goes zero due to the existence of -fno-zero-initialized-in-bss option
in Makefile.kern.inc  The puzzling point is gcc makes BSS segment in different
degree with or without -fno-zero-... option.

Q1/  the necessity of -fno-zero-initialized-in-bss option for NetBSD/aarch64 port.
Q2/  does it make sense after all for all-other gcc kernels?  It looks like as if the
intent is not to remove BSS segment but "BSS size hardening."   gcc kernels
have BSS anyway.

Toru Nishimura / ALKYL Technology


Home | Main Index | Thread Index | Old Index