]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: VDSO: Use CLANG_FLAGS instead of filtering out '--target='
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 15 Jan 2021 19:26:22 +0000 (12:26 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 18 Jan 2021 14:40:14 +0000 (15:40 +0100)
commitc9af9b77a3cb396d08ef7eba72d063f9c1a18b9c
treef237fc94ee44a74d3f78cf274fdf4b65a8d6c7a9
parentab752c06a094efb2c4b02dc8705dcc66a5011729
MIPS: VDSO: Use CLANG_FLAGS instead of filtering out '--target='

Commit 10ec79bf0415 ("MIPS: vdso: Allow clang's --target flag in VDSO
cflags") allowed the '--target=' flag from the main Makefile to filter
through to the vDSO. However, it did not bring any of the other clang
specific flags for controlling the integrated assembler and the GNU
tools locations (--prefix=, --gcc-toolchain=, and -no-integrated-as).
Without these, we will get a warning (visible with tinyconfig):

arch/mips/vdso/elf.S:14:1: warning: DWARF2 only supports one section per
compilation unit
.pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ; .long
4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3:
^
arch/mips/vdso/elf.S:34:2: warning: DWARF2 only supports one section per
compilation unit
 .section .mips_abiflags, "a"
 ^

All of these flags are bundled up under CLANG_FLAGS in the main Makefile
and exported so that they can be added to Makefiles that set their own
CFLAGS. Use this value instead of filtering out '--target=' so there is
no warning and all of the tools are properly used.

Cc: stable@vger.kernel.org
Fixes: 10ec79bf0415 ("MIPS: vdso: Allow clang's --target flag in VDSO cflags")
Link: https://github.com/ClangBuiltLinux/linux/issues/1256
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/vdso/Makefile