darwin.h (LINK_SPEC): Pass -fpie through to the linker.

2007-06-01  Geoffrey Keating  <geoffk@apple.com>

	* config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.

Index: testsuite/ChangeLog
2007-06-01  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/pie-link.c: New test.

From-SVN: r125270
This commit is contained in:
Geoffrey Keating 2007-06-01 22:58:14 +00:00 committed by Geoffrey Keating
parent e07e405d7b
commit 648beecdcd
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-06-01 Geoffrey Keating <geoffk@apple.com>
* config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
2007-06-01 Ian Lance Taylor <iant@google.com>
* tree-vrp.c (compare_name_with_value): Always set

View File

@ -307,6 +307,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} \
%{prebind} %{noprebind} %{nofixprebinding} %{prebind_all_twolevel_modules} \
%{read_only_relocs} \
%{sectcreate*} %{sectorder*} %{seg1addr*} %{segprot*} \

View File

@ -1,3 +1,7 @@
2007-06-01 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/pie-link.c: New test.
2007-06-01 Ian Lance Taylor <iant@google.com>
* gcc.dg/Wstrict-overflow-17.c: New test.

View File

@ -0,0 +1,7 @@
/* { dg-do link { target *-*-darwin[912]* *-*-linux* } } */
/* { dg-options "-fpie" } */
int main(void)
{
return 0;
}