Re: optimize __gp location

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2005-01-25 04:51:12
>>>>> On Fri, 21 Jan 2005 15:22:18 -0800, "Chen, Kenneth W" <kenneth.w.chen@intel.com> said:

  Ken> Can we position the __gp somewhat more optimally, to cover more of these
  Ken> symbols? Something like the following patch would make all of them fall
  Ken> into the 22-bit immediate offset relative to gp.

The position was chosen to maximize the amount of data that can be
addressed via the GOT.  As you observe, that doesn't maximize the
amount of data that can be addressed in a GP-relative fashion.

It might be best to just remove the __gp definition.  In that case,
the linker will automatically choose a value and it ought to be able
to choose an optimal value.

	--david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jan 24 12:53:18 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:35 EST