aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJoey Ye <joey.ye@arm.com>2013-11-19 10:00:46 +0000
committerJoey Ye <jye2@gcc.gnu.org>2013-11-19 10:00:46 +0000
commit32d6e6c0f802264d4c5a6c99d5109d4cbb6f7337 (patch)
tree8aea504c43370e1fdb28cd1b1c8baf8085b6e680 /gcc/doc
parentcd0470594cbc319d4a179734b2d6247056d07afb (diff)
downloadgcc-32d6e6c0f802264d4c5a6c99d5109d4cbb6f7337.zip
gcc-32d6e6c0f802264d4c5a6c99d5109d4cbb6f7337.tar.gz
gcc-32d6e6c0f802264d4c5a6c99d5109d4cbb6f7337.tar.bz2
arm.opt (-marm-pic-data-is-text-relative): New option.
2013-11-19 Joey Ye <joey.ye@arm.com> * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option. * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation for new option. * config/arm/arm.c (arm_option_override): By default disable -marm-pic-data-is-text-relative. (legitimize_pic_address): Use arm_pic_data_is_text_relative. (arm_assemble_integer): Likewise. * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE): New macro to initialize -marm-pic-data-is-text-relative. From-SVN: r205016
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8855fb7..c250385 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -12188,6 +12188,12 @@ before execution begins.
Specify the register to be used for PIC addressing. The default is R10
unless stack-checking is enabled, when R9 is used.
+@item -mpic-data-is-text-relative
+@opindex mpic-data-is-text-relative
+Assume that each data segments are relative to text segment at load time.
+Therefore, it permits addressing data using PC-relative operations.
+This option is on by default for targets other than VxWorks RTP.
+
@item -mpoke-function-name
@opindex mpoke-function-name
Write the name of each function into the text section, directly