[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 --- Comment #8 from cvs-commit at gcc dot gnu.org --- The binutils-2_35-branch branch has been updated by Maciej W. Rozycki : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9b6165529df6a759d65fc786a44eb28e226b81ad commit 9b6165529df6a759d65fc786a44eb28e226b81ad Author: Maciej W. Rozycki Date: Thu Jul 23 20:24:58 2020 +0100 PR ld/26288: Revert obsolete part of PR ld/26047 fix 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) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Maciej W. Rozycki : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b5dd7120f6bcbd1fe650b8839a53b2bd423fbf60 commit b5dd7120f6bcbd1fe650b8839a53b2bd423fbf60 Author: Maciej W. Rozycki Date: Thu Jul 23 20:11:29 2020 +0100 PR ld/26288: Revert obsolete part of PR ld/26047 fix 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. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 Florian Weimer changed: What|Removed |Added CC||fweimer at redhat dot com --- Comment #6 from Florian Weimer --- (In reply to Nick Clifton from comment #5) > It turns out that there are occasions when linking in executable files > does make sense, so I am suggesting this patch as a solution. It provides a > new linker command line option: -z allowexec which if used disables all > warnings about linking in executable files. > > Comments/questions ? Could you add some ELF test cases for linking against versioned symbols defined in the executable? In particular, it's not clear what to record as the soname in the version records. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 Paul Menzel changed: What|Removed |Added CC||pmenzel+sourceware.org-bugz ||illa at molgen dot mpg.de -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 Nick Clifton changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #4 from Nick Clifton --- OK, that is better. The test should now be performed for all kinds of linking. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a87e1817a435dab6c6c042f9306497c9f13d4236 commit a87e1817a435dab6c6c042f9306497c9f13d4236 Author: Nick Clifton Date: Thu May 28 17:43:21 2020 +0100 Have the linker fail if any attempt to link in an executable is made. PR 26047 * ldelf.c (ldelf_after_open): Fail if attempting to link one executable into another. Ensure that the test is made for all forms of linking. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2020-05-28 --- Comment #2 from Nick Clifton --- OK, I have applied an initial patch, although I suspect that it will need to be enhanced. At the moment the check does not trigger if performing a relocatable link or if the --traditional-format option is used. I suspect that both of these restrictions need to be removed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/26047] Don't allow linking ET_EXEC
https://sourceware.org/bugzilla/show_bug.cgi?id=26047 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a3fc941881e4224eff3ef20ba1e784026bcc17fa commit a3fc941881e4224eff3ef20ba1e784026bcc17fa Author: Nick Clifton Date: Thu May 28 16:43:01 2020 +0100 Stop the linker from accepting executable ELF files as inputs to other links. PR 26047 * ldelf.c (ldelf_after_open): Fail if attempting to link one executable into another. -- You are receiving this mail because: You are on the CC list for the bug.