public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][ARM] PR/65711: Don't pass '-dynamic-linker' when '-shared' is used
@ 2015-04-23  8:29 Ludovic Courtès
  2015-05-18 13:41 ` Ramana Radhakrishnan
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2015-04-23  8:29 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

As discussed at <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65711>.

Patch is for both 4.8 and 4.9 (possibly 5.1 too, I haven’t checked.)

Tested on armhf-linux-gnu (armv7.)

gcc/
2015-04-23  Ludovic Courtès  <ludo@gnu.org>

	PR 65711
	* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
	'-dynamic-linker' within %{!shared: ...}.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 458 bytes --]

--- gcc-4.8.4/gcc/config/arm/linux-elf.h	2015-04-08 20:31:20.376900478 +0200
+++ gcc-4.8.4/gcc/config/arm/linux-elf.h	2015-04-08 20:31:36.437014437 +0200
@@ -65,7 +65,7 @@
    %{symbolic:-Bsymbolic} \
    %{!static: \
      %{rdynamic:-export-dynamic} \
-     -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
+     %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
    -X \
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
    SUBTARGET_EXTRA_LINK_SPEC

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

end of thread, other threads:[~2015-06-23 12:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23  8:29 [PATCH][ARM] PR/65711: Don't pass '-dynamic-linker' when '-shared' is used Ludovic Courtès
2015-05-18 13:41 ` Ramana Radhakrishnan
2015-05-18 19:48   ` Ludovic Courtès
2015-06-23  9:30     ` Richard Biener
2015-06-23 10:10       ` Ludovic Courtès
2015-06-23  9:31   ` Ludovic Courtès
2015-06-23  9:38     ` Jakub Jelinek
2015-06-23 12:29       ` Ludovic Courtès

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).