[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNASSkD3SzS5do1REjTe8n7RqUKsLGc2XwWJ7PKJ-z18Oig@mail.gmail.com>
Date: Wed, 14 Aug 2019 00:00:05 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Kees Cook <keescook@...omium.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH] kbuild: Parameterize kallsyms generation and correct reporting
On Tue, Aug 13, 2019 at 6:49 AM Kees Cook <keescook@...omium.org> wrote:
>
> When kallsyms generation happens, temporary vmlinux outputs are linked
> but the quiet make output doesn't report it, giving the impression that
> the prior command is taking longer than expected.
>
> Instead, report the KSYM step before the temporary linking. While at it,
> this consolidates the repeated "kallsyms generation step" into a single
> function and removes the existing copy/pasting.
>
> Signed-off-by: Kees Cook <keescook@...omium.org>
> ---
Hmm, I did not notice this.
How about showing the link stage explicitly?
(Is it too verbose?)
MODINFO modules.builtin.modinfo
LD .tmp_vmlinux1
KSYMS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYMS .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
If this verbosity is OK,
you can move 'info LD ${2}' into vmlinux_link()
Anyway, I like the clean-ups in this patch.
This is just my personal preference, but
may I ask two cosmetic changes?
[1] Could you move kallsyms_step()
between kallsyms() and mksysmap() ?
I want to collect function definitions
to the top of the script.
[2] Could you shorten 'kallsymso_previous'
to 'kallsymso_prev' ?
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists