Hi, Wookey
On 11/13/2015 06:13 AM, Wookey wrote:
+++ Paul Sokolovsky [2015-11-12 23:24 +0200]:
Hello Maxim,
I hit the situation well described in https://gcc.gnu.org/ml/gcc-help/2015-02/msg00029.html , and wonder if there's any updates to your answer since February?
I'm playing with Ubuntu 15.04, on Dragonboard (15.09 Linaro release). Grepping thru output of apt-cache search, I found gcc-4.9-multilib-arm-linux-gnueabi, installed it, which pulled armel and armhf toochains, but didn't change linking behavior of "gcc -mabi=ilp32".
P.S. Any chance we could hope for -m32 switch, familiar from x86_64?
No! That's a terrible idea. Do you expect -m32 to produce armhf or armel or ilp32 ABI binaries? Why would one make any more sense than the others?
-m32 is a nasty hack IMHO, which works so long as you only have one 32-bit ABI and build multilib tools, but is not a good solution generally: https://wiki.debian.org/ToolChain/Cross#Multiarch_vs_Multilib and I donlt think we should copy the mistakes of x86 world in arm world when we can just do it right instead.
If you want binaries of a different ABI, install and use the right cross-toolchain. If you want v7 hardfp binaries then install arm-linux-gnueabihf-gcc-4.9 If you want ilp32 then install aarch64_ilp32-linux-gnu-gcc-4.9 (which you'll have to build first as that's not something we currently build in Debian or Ubuntu, but we could if there was some need)
Then all ABI-specific commands can be triplet-prefixed in order to run the right tools. This works natively and cross
What are you actually trying to do anyway? I thought everyone had given up with ilp32, so we can ignore it? We have patches to make ilp32 behave like a proper ABI, but they are not yet upstreamed because there is no agreed syscall interface for the kernel + glibc to implement: https://wiki.linaro.org/Platform/arm64-ilp32
Not sure if I lost some discussion. I am very interested in ilp32. And rfc2-v6 patches sent out today. Is there any plan to test in linaro? And how do I know the version of patches we supported?
Regards
Bamvor
Wookey
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev