diff options
author | Stefan Sørensen <stefan.sorensen@spectralink.com> | 2014-05-09 13:44:00 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-05-11 21:22:04 +0200 |
commit | 3787592063b0f30c69d074534a5a437bb458fbd7 (patch) | |
tree | 60e8a4b5ad7b9e41ce9d5ada0e119f89740240ef /package/python-protobuf/python-protobuf.mk | |
parent | 8677473035cc3e02281c8998c25d6dfa071f3b54 (diff) | |
download | buildroot-3787592063b0f30c69d074534a5a437bb458fbd7.tar.gz buildroot-3787592063b0f30c69d074534a5a437bb458fbd7.zip |
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>
Diffstat (limited to 'package/python-protobuf/python-protobuf.mk')
0 files changed, 0 insertions, 0 deletions