r193528 - Support cross linking to arm on ubuntu.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Oct 28 17:58:48 PDT 2013


On 28 October 2013 20:56, Chandler Carruth <chandlerc at google.com> wrote:
>
> On Mon, Oct 28, 2013 at 5:53 PM, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
>>
>> Right now we print:
>>
>> -dynamic-linker
>> /lib/ld-linux-armhf.so.3
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crt1.o
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crti.o
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o
>> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2
>> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../..
>> -L/lib
>> -L/usr/lib
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crtn.o
>>
>> The tricky part is implementing the ubuntu support (where with have
>> the "..../lib/../lib line) without regressing this.
>
>
> How so? Shouldn't that just be a no-op?

No. Because that is where we look first. If you try ubuntu right now
(after the revert) with the 32 bit x86 support installed we will try
to use the 32 bit x86 libraries when linking for arm.

Cheers,
Rafael




More information about the cfe-commits mailing list