public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65711] New: arm*-linux* "link" spec passes '-dynamic-linker' even for '-shared'
@ 2015-04-09  8:03 ludo at gnu dot org
  2015-04-09  8:04 ` [Bug target/65711] " ludo at gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ludo at gnu dot org @ 2015-04-09  8:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65711

            Bug ID: 65711
           Summary: arm*-linux* "link" spec passes '-dynamic-linker' even
                    for '-shared'
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ludo at gnu dot org

gcc/config/arm/linux-elf.h defines LINUX_TARGET_LINK_SPEC to (simplified):

  %{!static -dynamic-linker LINKER}

However, '-dynamic-linker' should not be passed when '-shared' is used.  The
correct way appears to be what config/i386/gnu-user.h does, which is:

  %{!static %{!shared -dynamic-linker LINKER}}

I believe the attached patch fixes that.  At least both 4.8.4 and 4.9.2 are
affected.

(Initially discussed in the context of <http://bugs.gnu.org/20102>.)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-07-24 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09  8:03 [Bug target/65711] New: arm*-linux* "link" spec passes '-dynamic-linker' even for '-shared' ludo at gnu dot org
2015-04-09  8:04 ` [Bug target/65711] " ludo at gnu dot org
2015-06-23  9:07 ` ludo at gcc dot gnu.org
2015-06-23  9:16 ` ludo at gcc dot gnu.org
2015-06-23  9:22 ` ludo at gcc dot gnu.org
2015-06-23  9:27 ` ludo at gcc dot gnu.org
2015-06-26  7:54 ` ramana at gcc dot gnu.org
2015-07-24 14:28 ` nsz at gcc dot gnu.org
2015-07-24 16:01 ` nsz at gcc dot gnu.org
2015-07-24 16:13 ` nsz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).