This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: R_MIPS_GOT16 bug
- To: Mark Mitchell <mark@codesourcery.com>
- Subject: Re: R_MIPS_GOT16 bug
- From: Ralf Baechle <ralf@uni-koblenz.de>
- Date: Mon, 16 Aug 1999 00:05:04 +0200
- Cc: binutils@sourceware.cygnus.com
- References: <19990806035519.B872@uni-koblenz.de> <19990805192859R.mitchell@codesourcery.com> <19990806170650.A1366@uni-koblenz.de> <19990806124535D.mitchell@codesourcery.com>
On Fri, Aug 06, 1999 at 12:45:35PM -0700, Mark Mitchell wrote:
> Ralf> Btw, the got in the executable seems to be quite bloated by
> Ralf> alot of apparently unused entries. My test case #10 has two
> Ralf> reserved entries, two used ones and 13 unused ones. The
> Ralf> ranlib binary which I've just dissected seems to have just
> Ralf> 14 used ones but in total 3737 allocated local got entries,
> Ralf> that's almost 15kb wasted.
>
> Yup. That's a harder problem to fix; it requires asembling the GOT in
> a rather more clever way. It would be nice to do, though! Let's
> tackle correctness first; then we can get to this.
It now has become an issue of correctness as well. Even a relativly small
program like vim when configured with perl, python and X support reaches
the size where we run out of GOT space.
As you say it looks non-trivial; is this on your agenda for the next time?
Ralf