ANDROID: arm64: pass code model to LLVMgold
authorSami Tolvanen <samitolvanen@google.com>
Thu, 16 Nov 2017 23:56:44 +0000 (15:56 -0800)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 26 Apr 2018 23:03:36 +0000 (16:03 -0700)
commit05fc028f049491ece8c53560b68622baf24433e0
treedfdf058c4e825695995ca0e0d7eb8aa7f23490c1
parent6b066ebd4e9f593784d385d6ea915ab1ec9ffaf3
ANDROID: arm64: pass code model to LLVMgold

With LTO_CLANG, even if we pass -mcmodel to clang, the flag isn't
stored in the generated LLVM IR, which means it won't be used for
the actual compilation at link time. Therefore, the flag needs to
be passed to LLVMgold to actually take effect.

Bug: 62093296
Bug: 67506682
Change-Id: I5cd21f97c800466f1bce039df56101ce4087ae20
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
arch/arm64/Makefile