+2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/9970
+ * ldlang.c (lang_end): Warn missing entry symbol for -pie.
+
2009-03-19 Alan Modra <amodra@bigpond.net.au>
* emultempl/spuelf.em (spu_before_allocation): Report errors from
bfd_boolean warn;
if ((link_info.relocatable && !link_info.gc_sections)
- || link_info.shared)
+ || (link_info.shared && !link_info.executable))
warn = entry_from_cmdline;
else
warn = TRUE;
+2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/9970
+ * ld-pie/pie.exp: Use -fpie to compile. Run *.d tests.
+
+ * ld-pie/start.d: New.
+ * ld-pie/start.s: Likewise.
+
2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6766
}
# Check if -pie is supported or not.
-send_log "$CC -pie $srcdir/$subdir/pie.c -o tmpdir/pie"
-catch "exec $CC -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output
+send_log "$CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie"
+catch "exec $CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output
send_log "$exec_output\n"
if { ![string match "" $exec_output] } {
return
}
run_ld_link_exec_tests [] $array_tests
+
+set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
+foreach t $test_list {
+ # We need to strip the ".d", but can leave the dirname.
+ verbose [file rootname $t]
+ run_dump_test [file rootname $t]
+}