size-7 and size-8 failures
Alan Modra
amodra@gmail.com
Mon Jan 21 02:39:00 GMT 2013
HJ,
I'm seeing
FAIL: Build size-7
FAIL: Build size-8
on x86_64-linux Ubuntu. The reason being that these tests are linked
with their test .so file before the .o file on the ld command line,
and Ubuntu gcc passes --as-needed to ld. Please note the following
fix, and add to any future tests of yours using run_cc_link_tests with
a shared lib specified in cflags.
2013-01-21 Alan Modra <amodra@gmail.com>
* ld-size/size.exp (build_tests <size-7, size-8>): Pass
--no-as-needed in cflags.
Index: ld/testsuite/ld-size/size.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-size/size.exp,v
retrieving revision 1.3
diff -u -p -r1.3 size.exp
--- ld/testsuite/ld-size/size.exp 18 Jan 2013 00:21:52 -0000 1.3
+++ ld/testsuite/ld-size/size.exp 21 Jan 2013 02:36:20 -0000
@@ -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"
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list