From aa6975fbb31187d739eeb94d715c0118e2425937 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 10 Dec 2004 19:48:21 +0000 Subject: * 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. --- gas/doc/c-mips.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gas/doc') 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 -- cgit v1.1