diff options
author | Geert Uytterhoeven <[email protected]> | 2014-07-23 14:00:06 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-07-23 15:10:54 -0700 |
commit | b1923b55af43a6febb976084bf30d1a4797c92c9 (patch) | |
tree | 8d4a035658fad44ce68a3a91bf18280e9bf38d1f /tools/perf | |
parent | b4c5c60920e3b0c4598f43e7317559f6aec51531 (diff) |
sh: also try passing -m4-nofpu for SH2A builds
When compiling a SH2A kernel (e.g. se7206_defconfig or rsk7203_defconfig)
using sh4-linux-gcc, linking fails with:
net/built-in.o: In function `__sk_run_filter':
net/core/filter.c:566: undefined reference to `__fpscr_values'
net/core/filter.c:269: undefined reference to `__fpscr_values'
...
net/built-in.o:net/core/filter.c:580: more undefined references to `__fpscr_values' follow
This happens because sh4-linux-gcc doesn't support the "-m2a-nofpu",
which is thus filtered out by "$(call cc-option, ...)".
As compiling using sh4-linux-gcc is useful for compile coverage, also
try passing "-m4-nofpu" (which is presumably filtered out when using a
real sh2a-linux toolchain) to disable the generation of FPU instructions
and references to __fpscr_values[].
Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Tony Breeds <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Magnus Damm <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions