freebsd64.h (ASM_SPEC32): Adust spec to handle PIE executables.
authorAndreas Tobler <andreast@gcc.gnu.org>
Mon, 2 Nov 2015 21:51:25 +0000 (22:51 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Mon, 2 Nov 2015 21:51:25 +0000 (22:51 +0100)
2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>

    * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
    PIE executables.

From-SVN: r229680

gcc/ChangeLog
gcc/config/rs6000/freebsd64.h

index f4569aaaacaccf32276c739dcb8f9f1a8c58014d..aa22a1798aee74e401654da6a0b6463cb9637d9b 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
+
+       * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
+       PIE executables.
+
 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
 
        * builtins.h (fold_fma): Move to fold-const-call.h.
index 7e630231bc7eabe86b0748e9d1ef92fdcf3b04c2..b5435c108383756f534d1ad356af3b8478b54dcd 100644 (file)
@@ -130,7 +130,7 @@ extern int dot_symbols;
 #define        LINK_OS_FREEBSD_SPEC "%{m32:%(link_os_freebsd_spec32)}%{!m32:%(link_os_freebsd_spec64)}"
 
 #define ASM_SPEC32 "-a32 \
-%{mrelocatable} %{mrelocatable-lib} %{" FPIC_SPEC ":-K PIC} \
+%{mrelocatable} %{mrelocatable-lib} %{" FPIE_OR_FPIC_SPEC ":-K PIC} \
 %{memb} %{!memb: %{msdata=eabi: -memb}} \
 %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
     %{mcall-freebsd: -mbig} \