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:
parent
e07e405d7b
commit
648beecdcd
4 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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*} \
|
||||
|
|
|
@ -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.
|
||||
|
|
7
gcc/testsuite/gcc.dg/pie-link.c
Normal file
7
gcc/testsuite/gcc.dg/pie-link.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* { dg-do link { target *-*-darwin[912]* *-*-linux* } } */
|
||||
/* { dg-options "-fpie" } */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue