[Patch,ld testsuite] Support check_lto_shared_available
Vidya Praveen
vidyapraveen@arm.com
Wed Dec 18 19:20:00 GMT 2013
Hello,
This patch implements the check_lto_shared_available improvement suggested by
H.J.Lu[1] as a part of fixing check_lto_available[2].
In abstract, check_lto_available checks if the compiler supports LTO by creating
an executable while check_lto_shared_available checks for LTO support as well as
LTO shared library support. This is essentially the old implementation of
check_lto_available which has been recently modified but with the support for
cflags & ldflags from the board file.
This patch also modifies lto.exp to use check_lto_shared_available.
OK?
[1] https://sourceware.org/ml/binutils/2013-12/msg00136.html
[2] https://sourceware.org/ml/binutils/2013-12/msg00132.html
Tested for aarch64-none-elf, arm-none-eabi, arm-none-linux-gnueabihf and
x86_64-unknown-linux-gnu.
Regards
VP
ld/testsuite/ChangeLog:
2013-12-18 Vidya Praveen <vidyapraveen@arm.com>
* lib/ld-lib.exp (check_lto_shared_available): New check.
* ld-plugin/lto.exp: Use check_lto_shared_available.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1066-ltoshared-3.patch
Type: text/x-diff
Size: 2218 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20131218/c4744408/attachment.bin>
More information about the Binutils
mailing list