public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM
@ 2015-07-22 17:22 Szabolcs Nagy
  2015-07-24 13:32 ` Marcus Shawcroft
  0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2015-07-22 17:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: Marcus Shawcroft

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

Same as
https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01387.html
but for AArch64.

-dynamic-linker is only passed to the linker if !static && !shared.

-rdynamic handling is changed too to be consistent with arm:
only pass -export-dynamic if !static.

2015-07-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	PR target/65711
	* config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
	-dynamic-linker within %{!static %{!shared, and -rdynamic within
	%{!static.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: aa.diff --]
[-- Type: text/x-patch; name=aa.diff, Size: 642 bytes --]

diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h
index 1600a32..c51c8b2 100644
--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -38,8 +38,9 @@
    %{static:-Bstatic}				\
    %{shared:-shared}				\
    %{symbolic:-Bsymbolic}			\
-   %{rdynamic:-export-dynamic}			\
-   -dynamic-linker " GNU_USER_DYNAMIC_LINKER "	\
+   %{!static:					\
+     %{rdynamic:-export-dynamic}		\
+     %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
    -X						\
    %{mbig-endian:-EB} %{mlittle-endian:-EL}     \
    -maarch64linux%{mabi=ilp32:32}%{mbig-endian:b}"

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

* Re: [PATCH][AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM
  2015-07-22 17:22 [PATCH][AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM Szabolcs Nagy
@ 2015-07-24 13:32 ` Marcus Shawcroft
  2015-07-24 16:29   ` Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Shawcroft @ 2015-07-24 13:32 UTC (permalink / raw)
  To: Szabolcs Nagy; +Cc: gcc-patches, Marcus Shawcroft

On 22 July 2015 at 18:13, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
> Same as
> https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01387.html
> but for AArch64.
>
> -dynamic-linker is only passed to the linker if !static && !shared.
>
> -rdynamic handling is changed too to be consistent with arm:
> only pass -export-dynamic if !static.
>
> 2015-07-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>
>         PR target/65711
>         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
>         -dynamic-linker within %{!static %{!shared, and -rdynamic within
>         %{!static.

OK and I think we should backport this to 5 and 4.9

Cheers
/Marcus

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

* Re: [PATCH][AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM
  2015-07-24 13:32 ` Marcus Shawcroft
@ 2015-07-24 16:29   ` Szabolcs Nagy
  0 siblings, 0 replies; 3+ messages in thread
From: Szabolcs Nagy @ 2015-07-24 16:29 UTC (permalink / raw)
  To: Marcus Shawcroft; +Cc: gcc-patches, Marcus Shawcroft

On 24/07/15 13:50, Marcus Shawcroft wrote:
> On 22 July 2015 at 18:13, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
>> Same as
>> https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01387.html
>> but for AArch64.
>>
>> -dynamic-linker is only passed to the linker if !static && !shared.
>>
>> -rdynamic handling is changed too to be consistent with arm:
>> only pass -export-dynamic if !static.
>>
>> 2015-07-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>>
>>         PR target/65711
>>         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
>>         -dynamic-linker within %{!static %{!shared, and -rdynamic within
>>         %{!static.
> 
> OK and I think we should backport this to 5 and 4.9
> 

Committed to trunk in r226158.
Backported to 5 in r226165.
Backported to 4.9 in r226169.

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-22 17:22 [PATCH][AArch64] Fix LINUX_TARGET_LINK_SPEC to be consistent with ARM Szabolcs Nagy
2015-07-24 13:32 ` Marcus Shawcroft
2015-07-24 16:29   ` Szabolcs Nagy

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