PR ld/26288: Revert obsolete part of PR ld/26047 fix
Revert commita3fc941881
("Stop the linker from accepting executable ELF files as inputs to other links."), which has been made obsolete by commita87e1817a4
("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.
This commit is contained in:
parent
e7bc9db8f4
commit
b5dd7120f6
2 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,12 @@
|
|||
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 Nick Alcock <nick.alcock@oracle.com>
|
||||
|
||||
* testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
|
||||
|
|
|
@ -1078,13 +1078,6 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
|
|||
{
|
||||
int type = 0;
|
||||
|
||||
if (bfd_link_executable (& link_info)
|
||||
&& elf_tdata (abfd)->elf_header->e_type == ET_EXEC)
|
||||
{
|
||||
einfo (_("%F%P: cannot use executable file '%pB' as input to a link\n"),
|
||||
abfd);
|
||||
}
|
||||
|
||||
if (bfd_input_just_syms (abfd))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue