lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 10 May 2019 22:53:14 +0900 From: Masahiro Yamada <yamada.masahiro@...ionext.com> To: Sedat Dilek <sedat.dilek@...il.com> Cc: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>, Nick Desaulniers <ndesaulniers@...gle.com>, Nathan Chancellor <natechancellor@...il.com>, Arnd Bergmann <arnd@...db.de>, Clang-Built-Linux ML <clang-built-linux@...glegroups.com>, Michal Marek <michal.lkml@...kovi.net>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] kbuild: add most of Clang-specific flags unconditionally On Thu, May 9, 2019 at 4:06 PM Sedat Dilek <sedat.dilek@...il.com> wrote: > > On Thu, May 9, 2019 at 8:45 AM Masahiro Yamada > <yamada.masahiro@...ionext.com> wrote: > > > > We do not support old Clang versions. Upgrade your clang version > > if any of these flags is unsupported. > > > > Let's add flags within ifdef CONFIG_CC_IS_CLANG unconditionally, > > except -fcatch-undefined-behavior. > > > > Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com> > > Looks good to me. > > Reviewed-by: Sedat Dilek <sedat.dilek@...il.com> > > Just as sidenote: > I experimented with a snapshot version of clang-9 and lld-9 and could > build, link and boot on bare-metal with '-mglobal-merge' on > Debian/buster AMD64. The comment says # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the # source of a reference will be _MergedGlobals and not on of the whitelisted names. # See modpost pattern 2 So, it seems it is just a matter of modpost, but I am not sure enough. This flag has been here since the initial support. (61163efae02040f66a95c8ed17f4407951ba58fa) Perhaps, we should review clang flags one by one again? > But forgot to document in [1]. > > [1] https://github.com/ClangBuiltLinux/linux/issues/431 -- Best Regards Masahiro Yamada
Powered by blists - more mailing lists