[PATCH][ld/testsuite] treate -specs as both cflags & ldflags
Jiong Wang
jiong.wang@arm.com
Mon Oct 27 14:32:00 GMT 2014
More information about the Binutils mailing list
Mon Oct 27 14:32:00 GMT 2014
- Previous message (by thread): [PATCH][ld/testsuite] treate -specs as both cflags & ldflags
- Next message (by thread): New Ukrainian PO file for 'gas' (version 2.24.90)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 21/10/14 14:59, Jiong Wang wrote:
> a couple of ld-plugin tests for LTO failed on linking stage on aarch64 bare-metal test.
>
> these testcases need to link against rdimon to pass linking, while currently we control these ld flags by using
> spec file.
>
> the problem is -specs= only specified on cflags, while spec files actually contain options affect
> linker's behavior, so specs options should be treated as both cflags & ldflags.
>
> the solution in this patch is, if gcc driver is used as link tool, then we also append cflags to the command line so
> that specs options will not be missed.
>
> no regression on x86-64 ld test.
> no regression on aarch64 bare-metal/linux test.
> all ld-plugin/lto fails on bare-metal gone away.
>
> ok for trunk?
>
> ld/testsuite/
>
> * lib/ld-lib.exp (run_ld_link_exec_tests): Append board_cflags if gcc driver used
> as link tool.
> (run_cc_link_exec_tests): Likewise.
Ping~
I removed the modification of run_ld_link_exec_tests, as the "link_cmd" may be ld which will not accept -specs=.
ld/testsuite/
* lib/ld-lib.exp (run_cc_link_exec_tests): Append board_cflags if gcc driver used
as link tool.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-ld-exp.patch
Type: text/x-patch
Size: 875 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20141027/71413e9e/attachment.bin>
- Previous message (by thread): [PATCH][ld/testsuite] treate -specs as both cflags & ldflags
- Next message (by thread): New Ukrainian PO file for 'gas' (version 2.24.90)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list