* ld-size/size.exp (build_tests <size-7, size-8>): Pass
authorAlan Modra <amodra@gmail.com>
Mon, 21 Jan 2013 02:38:37 +0000 (02:38 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 21 Jan 2013 02:38:37 +0000 (02:38 +0000)
--no-as-needed in cflags.

ld/testsuite/ChangeLog
ld/testsuite/ld-size/size.exp

index ee98aaa7762250dd75dcfba16f78dd41b854ab5f..0df22ac2f33aba5c5bf56e5ce4b59cabfbafd7c1 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-21  Alan Modra  <amodra@gmail.com>
+
+       * ld-size/size.exp (build_tests <size-7, size-8>): Pass
+       --no-as-needed in cflags.
+
 2013-01-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/default.exp (get_target_emul): Also set HOSTING_SCRT0.
index 24269c5f543b0862442a763a84c014f3f7f96ffc..a1cbc17b18a236451a68a7e1378c29ba9632bf23 100644 (file)
@@ -77,13 +77,13 @@ set build_tests {
    "-shared" "-fPIC"
    {size-7b.c} {} "libsize-7.so"}
   {"Build size-7"
-   "tmpdir/libsize-7.so" ""
+   "-Wl,--no-as-needed tmpdir/libsize-7.so" ""
    {size-7a.c} {{readelf -rW size-7.rd}} "size-7.exe"}
   {"Build libsize-8.so"
    "-shared" "-fPIC"
    {size-8b.c} {} "libsize-8.so"}
   {"Build size-8"
-   "tmpdir/libsize-8.so" ""
+   "-Wl,--no-as-needed tmpdir/libsize-8.so" ""
    {size-8a.c} {{readelf -rW size-8.rd}} "size-8.exe"}
   {"Build libsize-9.so"
    "-shared" "-fPIC"