diff options
author | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-11 13:20:57 +0000 |
---|---|---|
committer | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-11 13:20:57 +0000 |
commit | 562ef5ccc46d9786275a40639fa56fa12ad7e476 (patch) | |
tree | 532861d0edff899e1bd9fe5d71d6a207bb11a98a /gcc/common.opt | |
parent | 4090805fc1202cce2b05428eb033e4a26ab0cc9e (diff) | |
download | gcc-562ef5ccc46d9786275a40639fa56fa12ad7e476.tar.gz |
* calls.c (prepare_call_address): Transform PLT call to GOT lookup and
indirect call by forcing address into a pseudo with -fno-plt.
* common.opt (flag_plt): New option.
* doc/invoke.texi (Code Generation Options): Add -fno-plt.
([-fno-plt]): Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223003 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 51833c17e49..6753fd31b62 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1781,6 +1781,10 @@ fpie Common Report Var(flag_pie,1) Negative(fPIC) Generate position-independent code for executables if possible (small mode) +fplt +Common Report Var(flag_plt) Init(1) Optimization +Use PLT for PIC calls (-fno-plt: load the address from GOT at call site) + fplugin= Common Joined RejectNegative Var(common_deferred_options) Defer Specify a plugin to load |