From: Andreas Tobler Date: Mon, 2 Nov 2015 21:51:25 +0000 (+0100) Subject: freebsd64.h (ASM_SPEC32): Adust spec to handle PIE executables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b963b33ca3b84d28c8dbd79d08d4f1e5c439925;p=gcc.git freebsd64.h (ASM_SPEC32): Adust spec to handle PIE executables. 2015-11-02 Andreas Tobler * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle PIE executables. From-SVN: r229680 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4569aaaaca..aa22a1798ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-02 Andreas Tobler + + * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle + PIE executables. + 2015-11-02 Richard Sandiford * builtins.h (fold_fma): Move to fold-const-call.h. diff --git a/gcc/config/rs6000/freebsd64.h b/gcc/config/rs6000/freebsd64.h index 7e630231bc7..b5435c10838 100644 --- a/gcc/config/rs6000/freebsd64.h +++ b/gcc/config/rs6000/freebsd64.h @@ -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} \