public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] ARM: Use different linker path for hardfloat ABI
@ 2012-03-29 19:34 dann frazier
  2012-03-30 17:52 ` Richard Earnshaw
  0 siblings, 1 reply; 68+ messages in thread
From: dann frazier @ 2012-03-29 19:34 UTC (permalink / raw)
  To: gcc-patches; +Cc: cross-distro

This is an updated version of a patch Debian and Ubuntu are using to
use an alternate linker path for hardfloat binaries. The difference
with this one is that it covers the case where no float flag
was passed in, defaulting to the softfloat path.

2012-03-29  dann frazier <dann.frazier@canonical.com>

	* config/arm/linux-elf.h: Use alternate linker path
          for hardfloat ABI

Index: gcc/config/arm/linux-elf.h
===================================================================
--- gcc/config/arm/linux-elf.h	(revision 185708)
+++ gcc/config/arm/linux-elf.h	(working copy)
@@ -59,14 +59,21 @@
 
 #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
 
-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define LINUX_DYNAMIC_LINKER_SF "/lib/ld-linux.so.3"
+#define LINUX_DYNAMIC_LINKER_HF "/lib/arm-linux-gnueabihf/ld-linux.so.3"
 
 #define LINUX_TARGET_LINK_SPEC  "%{h*} \
    %{static:-Bstatic} \
    %{shared:-shared} \
    %{symbolic:-Bsymbolic} \
    %{rdynamic:-export-dynamic} \
-   -dynamic-linker " GNU_USER_DYNAMIC_LINKER " \
+   %{msoft-float:-dynamic-linker " LINUX_DYNAMIC_LINKER_SF "} \
+   %{mfloat-abi=soft*:-dynamic-linker " LINUX_DYNAMIC_LINKER_SF "} \
+   %{mhard-float:-dynamic-linker " LINUX_DYNAMIC_LINKER_HF "} \
+   %{mfloat-abi=hard:-dynamic-linker " LINUX_DYNAMIC_LINKER_HF "} \
+   %{!mfloat-abi: \
+     %{!msoft-float: \
+       %{!mhard-float:-dynamic-linker " LINUX_DYNAMIC_LINKER_SF "}}} \
    -X \
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
    SUBTARGET_EXTRA_LINK_SPEC

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

end of thread, other threads:[~2012-04-11 17:22 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 19:34 [PATCH] ARM: Use different linker path for hardfloat ABI dann frazier
2012-03-30 17:52 ` Richard Earnshaw
2012-04-02 21:07   ` dann frazier
2012-04-03  3:29     ` Michael Hope
2012-04-03 14:31       ` dann frazier
2012-04-03 22:56       ` Joseph S. Myers
2012-04-04  2:40         ` Michael Hope
2012-04-04  9:06           ` Joseph S. Myers
2012-04-04 12:10             ` Dennis Gilmore
2012-04-05 13:30               ` Konstantinos Margaritis
2012-04-05 14:13                 ` Niels de Vos
2012-04-05 15:09                 ` Mike Frysinger
2012-04-05 15:24                   ` Konstantinos Margaritis
2012-04-05 15:55                     ` Mike Frysinger
2012-04-05 16:25                       ` Konstantinos Margaritis
2012-04-10  4:10                         ` Mike Frysinger
2012-04-05 16:16                   ` Steve McIntyre
2012-04-05 17:36                     ` Mike Frysinger
2012-04-04 23:33             ` Michael Hope
2012-04-05  0:07               ` Joseph S. Myers
2012-04-05  1:17                 ` Michael Hope
2012-04-05 16:05                   ` Steve McIntyre
2012-04-05 16:03               ` Steve McIntyre
2012-04-05  1:32           ` dann frazier
2012-04-05 14:57         ` Steve McIntyre
2012-04-10 20:31         ` Carlos O'Donell
2012-04-03  9:29     ` Andrew Haley
2012-04-03 10:46       ` Richard Earnshaw
2012-04-03 10:51         ` Richard Guenther
2012-04-03 10:55           ` Richard Earnshaw
2012-04-04  8:59             ` Andrew Haley
2012-04-03 11:02         ` Jakub Jelinek
2012-04-03 16:10           ` Richard Earnshaw
2012-04-03 16:18             ` Andrew Haley
2012-04-03 21:19               ` Michael Hope
2012-04-03 23:12                 ` Jakub Jelinek
2012-04-03 23:49                   ` Michael Hope
2012-04-04  0:00                     ` Peter Robinson
2012-04-04  0:56                     ` Paulo César Pereira de Andrade
2012-04-04  1:35                       ` Michael Hope
2012-04-04  6:54                         ` Jakub Jelinek
2012-04-04  9:16                           ` Joseph S. Myers
2012-04-04 22:51                           ` Michael Hope
2012-04-09 20:48                             ` Adam Conrad
2012-04-09 23:14                               ` Mike Frysinger
2012-04-09 23:31                                 ` Adam Conrad
2012-04-10  4:01                                   ` Mike Frysinger
2012-04-10  5:17                                     ` Adam Conrad
2012-04-10  5:36                                       ` Jakub Jelinek
2012-04-10  9:19                                         ` Konstantinos Margaritis
2012-04-10 14:35                                           ` Dennis Gilmore
2012-04-10 15:14                                             ` Konstantinos Margaritis
2012-04-10 15:39                                             ` Steve McIntyre
2012-04-11 12:06                                               ` Jeff Law
2012-04-10  6:17                                       ` Jeff Law
2012-04-10 16:47                                         ` Michael Edwards
2012-04-11  3:15                                           ` Mike Frysinger
2012-04-11 17:22                                             ` Michael K. Edwards
2012-04-11  3:08                                       ` Mike Frysinger
2012-04-10  4:17                                 ` Jeff Law
2012-04-10  4:43                                   ` Mike Frysinger
2012-04-10  5:26                               ` Paulo César Pereira de Andrade
2012-04-05 13:34                           ` Dennis Gilmore
2012-04-11 10:55                             ` Richard Earnshaw
2012-04-05 14:39                         ` Steve McIntyre
2012-04-05 15:09                           ` Mike Frysinger
2012-04-05 15:38                             ` Paulo César Pereira de Andrade
2012-04-05 14:33                   ` Steve McIntyre

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