OSDN Git Service

Avoid accidentally using the host's native 'as' command.
authorAlistair Strachan <alistair.strachan@imgtec.com>
Thu, 5 May 2016 23:29:08 +0000 (16:29 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 11 May 2016 18:22:44 +0000 (02:22 +0800)
commit54c7d9430beb8b681b28fe83414da9ab0ed9f081
tree271ec1551e453d008a075e256a3786e62c4582b3
parent37d7b9c85d43b8764e53940510018449d8c36b55
Avoid accidentally using the host's native 'as' command.

When invoking clang for the host to assemble .S files, the -B flag
would not be provided, which allowed the host prebuilt clang to
use an 'as' from the native environment. Most of the time this
"just works", but some newer 'as' versions cause problems with
the older prebuilt toolchain, for example by generating
unsupported relocation types.

To avoid this problem, simply use the -B flag to tell clang to
invoke the assembler from the correct prebuilt gcc prefix.

Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
core/clang/HOST_x86_common.mk