2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/9970
	* ldlang.c (lang_end): Warn missing entry symbol for -pie.

ld/testsuite/

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.
This commit is contained in:
H.J. Lu
2009-03-20 17:39:04 +00:00
parent 8c21ca2102
commit 4bf27aa9ba
6 changed files with 35 additions and 3 deletions

View File

@@ -5417,7 +5417,7 @@ lang_end (void)
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;