Revert commit
a3fc941881e4 ("Stop the linker from accepting executable
ELF files as inputs to other links."), which has been made obsolete by
commit
a87e1817a435 ("Have the linker fail if any attempt to link in an
executable is made."). An earlier check triggers added with the latter
commit making the piece of code removed dead.
ld/
PR ld/26288
Revert:
PR 26047
* ldelf.c (ldelf_after_open): Fail if attempting to link one
executable into another.
(cherry picked from commit
b5dd7120f6bcbd1fe650b8839a53b2bd423fbf60)
+2020-07-23 Maciej W. Rozycki <macro@wdc.com>
+
+ PR ld/26288
+
+ Revert:
+ PR 26047
+ * ldelf.c (ldelf_after_open): Fail if attempting to link one
+ executable into another.
+
2020-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26262
{
int type = 0;
- if (bfd_link_executable (& link_info)
- && elf_tdata (abfd)->elf_header->e_type == ET_EXEC)
- {
- einfo (_("%P: Using an executable file (%pB) as input to a link is deprecated - support is likely to be removed in the future\n"),
- abfd);
- }
-
if (bfd_input_just_syms (abfd))
continue;