diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-25 11:17:35 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-25 11:17:35 +0000 |
commit | b7d1dec3acf1e3f80364bdbcae75c478aa4b35b2 (patch) | |
tree | 8fad57787ab5621d328ad41358f3da858a97b716 /gcc/config/darwin.h | |
parent | c495ccca83b5ba3e05f5545950ede67000286a93 (diff) | |
download | gcc-b7d1dec3acf1e3f80364bdbcae75c478aa4b35b2.tar.gz |
PR driver/49371
* config/darwin.c (darwin_override_options): Improve warning when
mdynamic-no-pic is given together with fPIC/fpic, also warn when it
is given with fpie/fPIE.
* config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
* config/darwin9.h (PIE_SPEC): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175397 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 41c0d744afb..762a460476b 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -226,6 +226,8 @@ extern GTY(()) int darwin_ms_struct; #define LINK_SYSROOT_SPEC "%{isysroot*:-syslibroot %*}" #endif +#define PIE_SPEC "%{fpie|pie|fPIE:}" + /* Please keep the random linker options in alphabetical order (modulo 'Z' and 'no' prefixes). Note that options taking arguments may appear multiple times on a command line with different arguments each time, @@ -290,7 +292,7 @@ extern GTY(()) int darwin_ms_struct; %:version-compare(< 10.5 mmacosx-version-min= -multiply_defined) \ %:version-compare(< 10.5 mmacosx-version-min= suppress)}} \ %{Zmultiplydefinedunused*:-multiply_defined_unused %*} \ - %{fpie:-pie} \ + " PIE_SPEC " \ %{prebind} %{noprebind} %{nofixprebinding} %{prebind_all_twolevel_modules} \ %{read_only_relocs} \ %{sectcreate*} %{sectorder*} %{seg1addr*} %{segprot*} \ |