[PATCH] [ASan] Fixed path to Android bin directory

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Oct 11 01:48:23 PDT 2013


In my case, clang calls the linker as

[-B path]/lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld

There is no COMPILER_PATH in the environment, and PATH does not
contain anything relevant.
Do we need two -B options here?

On Fri, Oct 11, 2013 at 12:37 PM, Evgeniy Stepanov
<eugeni.stepanov at gmail.com> wrote:
> With this change, I get
>
> arm-linux-androideabi-ld: error: cannot find -lgcc
>
> On Fri, Oct 11, 2013 at 12:28 PM, Renato Golin <renato.golin at linaro.org> wrote:
>> This looks straight-forward enough to be an obvious omission.
>>
>> --renato
>>
>>
>> On 10 October 2013 23:14, Greg Fitzgerald <gregf at codeaurora.org> wrote:
>>>
>>> Without this patch, the -B parameter is not being utilized by clang in the
>>> ASan build.  Instead, clang is finding arm-linux-androideabi-ld using either
>>> the PATH or COMPILER_PATH environment variable.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Greg
>>>
>>>
>>>
>>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
>>> by The Linux Foundation
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>>
>>



More information about the llvm-commits mailing list