[ld, testsuite] Only run rdynamic-1 when "-rdynamic" option is supported by compiler

Jiong Wang jiong.wang@foss.arm.com
Fri Mar 10 16:24:00 GMT 2017


This is the following error on arm bare-metal

   FAIL: Build rdynamic-1

"-rdynamic" is not supported by most bare-metal GCC, the only bare-metal I am
aware of is
  
   https://gcc.gnu.org/ml/gcc-patches/2011-02/msg00567.html

This patch implemented a -rdynamic availability check and gated "rdynamic-1"
build test.  GCC testsuite has added similar checks this week.

   https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00258.html

No regression on X86-64/AArch64 native ld check.
OK for master?

Thanks.

ld/
2017-03-10  Jiong Wang  <jiong.wang@arm.com>

         * testsuite/lib/ld-lib.exp (check_rdynamic_available): New function.
         * testsuite/ld-elf/shared.exp (build_tests): Split tests which require
         GCC "-rdynamic" option support into "rdynamic_build_tests".
         (rdynamic_build_tests): New and only run it when
         check_rdynamic_available returns true.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdynamic-check.patch
Type: text/x-diff
Size: 2351 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170310/fca429d0/attachment.bin>


More information about the Binutils mailing list