From 3b963b33ca3b84d28c8dbd79d08d4f1e5c439925 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Mon, 2 Nov 2015 22:51:25 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/freebsd64.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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} \ -- 2.30.2