m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for implict or explicit -fPIE or -fpie.
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 May 2015 17:04:15 +0000 (17:04 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 30 May 2015 17:04:15 +0000 (17:04 +0000)
* config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
implict or explicit -fPIE or -fpie.

From-SVN: r223889

gcc/ChangeLog
gcc/config/m68k/m68k.h

index 7b3c784b9fcd4b3bfacd43ee62cc030a83ab5ef6..9efdb9c1788e269c52ec560b9fe529d24aad7263 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
+       implict or explicit -fPIE or -fpie.
+
 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
 
        * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
index 74ebff7fab4bec8eebaca92e17b455f3e6e33df1..b227c67522664d2555da447daf2ff83417447b5e 100644 (file)
@@ -40,8 +40,8 @@ along with GCC; see the file COPYING3.  If not see
 %{m68020-40:-m68040}%{m68020-60:-m68040}\
 %{mcpu=*:-mcpu=%*}%{march=*:-march=%*}\
 "
-#define ASM_PCREL_SPEC "%{" FPIC_SPEC ":--pcrel} \
- %{mpcrel:%{" NO_FPIC_SPEC ":--pcrel}} \
+#define ASM_PCREL_SPEC "%{" FPIE_OR_FPIC_SPEC ":--pcrel} \
+ %{mpcrel:%{" NO_FPIE_AND_FPIC_SPEC ":--pcrel}} \
  %{msep-data|mid-shared-library:--pcrel} \
 "