This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] rs6000: -msdata=none vs -G0
- To: DJ Delorie <dj at redhat dot com>
- Subject: Re: [patch] rs6000: -msdata=none vs -G0
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 27 Oct 2001 14:45:33 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <200110261904.f9QJ4vV04044@greed.delorie.com>
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>