This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Object files increadibly big for MIPS target.
- To: Mike Stump <mrs at wrs dot com>
- Subject: Re: Object files increadibly big for MIPS target.
- From: Gabe Foster <gabe at sgrail dot com>
- Date: Sat, 07 Nov 1998 07:31:42 -0700
- CC: egcs at cygnus dot com, engstad at intermetrics dot com
- Organization: Silicon Grail
- References: <199811062240.OAA24424@kankakee.wrs.com>
Mike Stump wrote:
>
> > Date: Thu, 05 Nov 1998 12:36:15 -0800
> > From: Pal-Kristian Engstad <engstad@intermetrics.com>
>
> > I've successfully built a r4300 cross compiler for the Nintendo
> > system, but I have a problem which I can't seem to fix. When
> > compiling with debugging on, the object files generated are huge.
> > It seems like there is a huge .mdebug section in the object (ELF
> > format), but there is no need for this section, as the debugger
> > is not reading this information at all.
>
> > So the question is: How do you configure gcc and binutils not to
> > generate this huge .mdebug section?
>
> Is the space loaded into ram, or are you just complaining about $0.25
> worth of disk space? If the later, why? If it is unused, why can't
> you just strip it with obbcopy --remove-section=?
>
I've had this problem using egcs on mips-sgi-irix6.4. The .mdebug
section does get loaded and it is HUGE. I run with 512Meg of ram and my
program swapped just starting up! I did not even load a data set.
Thanks for the objcopy hint. I'll give it a try.
--
* J. Gabriel Foster Silicon Grail gabe@sgrail.com *
* Cashing in on being a nerd. *