Re: [PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Nicolas Pitre
On Fri, 16 Mar 2018, Masahiro Yamada wrote: > If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from > a pristine state, the vmlinux is linked twice. > > [1] A user runs "make" > > [2] First build with empty autoksyms.h > > [3] adjust_autoksyms.sh updates autoksyms.h and recurses "

[PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from a pristine state, the vmlinux is linked twice. [1] A user runs "make" [2] First build with empty autoksyms.h [3] adjust_autoksyms.sh updates autoksyms.h and recurses "make vmlinux" (begin sub-make) [4] Secon