diff options
author | Ian Lance Taylor <ian@airs.com> | 2004-12-10 19:48:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2004-12-10 19:48:21 +0000 |
commit | aa6975fbb31187d739eeb94d715c0118e2425937 (patch) | |
tree | bc611f4894169fcba7fd058df1f24dd990d98333 /gas/doc/c-mips.texi | |
parent | 01926a693560658e7293190549a9c2cee946811a (diff) | |
download | gdb-aa6975fbb31187d739eeb94d715c0118e2425937.zip gdb-aa6975fbb31187d739eeb94d715c0118e2425937.tar.gz gdb-aa6975fbb31187d739eeb94d715c0118e2425937.tar.bz2 |
* config/tc-mips.c (mips_in_shared): New static variable.
(macro_build_lui): Permit "_gp" if !mips_in_shared.
(md_longopts): Add -mshared and -mno-shared.
(md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
(s_cpload): Implement !mips_in_shared case.
(s_cpsetup): Likewise.
* doc/c-mips.texi (MIPS Opts): Document -mno-shared.
* NEWS: Mention -mno-shared.
Diffstat (limited to 'gas/doc/c-mips.texi')
-rw-r--r-- | gas/doc/c-mips.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi index 1375230..6446c92 100644 --- a/gas/doc/c-mips.texi +++ b/gas/doc/c-mips.texi @@ -238,6 +238,16 @@ error is detected. This is the default. @itemx -mno-pdr Control generation of @code{.pdr} sections. Off by default on IRIX, on elsewhere. + +@item -mshared +@itemx -mno-shared +When generating code using the Unix calling conventions (selected by +@samp{-KPIC} or @samp{-mcall_shared}), gas will normally generate code +which can go into a shared library. The @samp{-mno-shared} option +tells gas to generate code which uses the calling convention, but can +not go into a shared library. The resulting code is slightly more +efficient. This option only affects the handling of the +@samp{.cpload} and @samp{.cpsetup} pseudo-ops. @end table @node MIPS Object |