From: ludo@gnu.org (Ludovic Courtès)
To: gcc-patches@gcc.gnu.org
Subject: [PATCH][ARM] PR/65711: Don't pass '-dynamic-linker' when '-shared' is used
Date: Thu, 23 Apr 2015 08:29:00 -0000 [thread overview]
Message-ID: <87mw1zl035.fsf@gnu.org> (raw)
[-- 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
next reply other threads:[~2015-04-23 8:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 8:29 Ludovic Courtès [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mw1zl035.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).