Skip to content
Snippets Groups Projects
Commit 35394145 authored by Nick Clifton's avatar Nick Clifton
Browse files

Stop the linker from loosing the entry point for COFF/PE code when compiling with LTO enabled.

  PR 30300
  * emultempl/pep.em (set_entry_point): Add an undefined reference to the entry point if it has been constructed heuristically.
  * emultempl/pe.em (set_entry_point): Likewise.
parent 35130e73
No related branches found
No related tags found
No related merge requests found
2023-05-04 Nick Clifton <nickc@redhat.com>
PR 30300
* emultempl/pep.em (set_entry_point): Add an undefined reference
to the entry point if it has been constructed heuristically.
* emultempl/pe.em (set_entry_point): Likewise.
2023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
* scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
......
......@@ -659,6 +659,9 @@ set_entry_point (void)
}
lang_default_entry (entry);
if (bfd_link_executable (&link_info) && ! entry_from_cmdline)
ldlang_add_undef (entry, false);
}
static void
......
......@@ -631,6 +631,9 @@ set_entry_point (void)
}
lang_default_entry (entry);
if (bfd_link_executable (&link_info) && ! entry_from_cmdline)
ldlang_add_undef (entry, false);
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment