buildrootschalter/toolchain
Stefan Sørensen 3787592063 toolchain-external: Fix EABIhf check
Currently the check for EABI/EABIhf toolchains looks for the
Tag_ABI_VFP_args attribute in the crt1.o file which gcc adds in an
EABIhf toolchain.
In uClibc, however, crt1.o is not compiled from c but assembly, so the
Tag_ABI_VFP_args attribute is not added in the object file. This causes
the EABIhf check in the external toolchain logic to fail for
uClibc-based toolchains.

Fix by compiling a dummy .c file and trying to link the object against the
C library. Since it is impossible to mix EABI and EABIhf code, a mismatch
between the buildroot and toolchain ABI settings will be detected during
this link step.

Fixes bug #6842: https://bugs.busybox.net/show_bug.cgi?id=6842

[Peter: fix final 'fi']
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
[ThomasDS: do full link iso readelf test, update commit message]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-11 21:22:04 +02:00
..
toolchain package: add toolchain dependency to every target package 2014-02-14 21:08:35 +01:00
toolchain-buildroot toolchain/buildroot: default to uClibc 2014-05-06 14:06:01 +02:00
toolchain-external toolchain-external: add publicly available musl toolchains 2014-05-06 10:18:51 +02:00
Config.in toolchain: enable internal for aarch64 2014-04-24 15:21:13 +02:00
helpers.mk toolchain-external: Fix EABIhf check 2014-05-11 21:22:04 +02:00
toolchain-common.in toolchain: remove nommu option for MIPS 2014-05-08 16:53:15 +02:00