This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] rs6000: -msdata=none vs -G0


DJ Delorie <dj@redhat.com> writes:

> If you give gcc "-msdata=none" there should be no .sdata/.sbss
> sections created.  However, only cc1 honors this option - the linker
> can still put ".comm" objects in .sbss based on their size and the -G
> setting.  So, if you give -msdata=none, tell the linker -G0 so that it
> also does not create a .sbss section.

This is OK, assuming you've tested it on at least the sim.

> 2001-10-26  DJ Delorie  <dj@redhat.com>
> 
> 	* config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
> 	override -G, and force -G0.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]