[PATCH] Support cross linking from x86-64 to arm on ubuntu

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Mon Oct 28 18:34:11 PDT 2013


Hi chandlerc, logan,

This is a version of the reverted r193528 that first checks for the existence of lib32/lib64 to decide if we have a biarch system.

This produces the correct -L lines for fedora, ubuntu and the custom gcc install represented by multilib_64bit_linux_tree.

http://llvm-reviews.chandlerc.com/D2045

Files:
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  test/Driver/Inputs/fedora_18_tree/etc/redhat-release
  test/Driver/Inputs/x86-64_ubuntu_13.10/etc/debian_version
  test/Driver/Inputs/x86-64_ubuntu_13.10/lib/.keep
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crt1.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crti.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crtn.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crt1.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crti.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crtn.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/crtbegin.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/crtend.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/crtbegin.o
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/crtend.o
  test/Driver/linux-ld.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2045.1.patch
Type: text/x-patch
Size: 9079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131028/c2f27f0f/attachment.bin>


More information about the cfe-commits mailing list