This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: PATCH for N32 ABI


   Date: Wed, 30 Jun 1999 16:02:01 -0700
   From: Richard Henderson <rth@cygnus.com>

   On Tue, Jun 29, 1999 at 12:50:00AM -0700, Mark Mitchell wrote:
   > +  /* The linker script will have created a symbol named `_gp' with the
   > +     appropriate value.  */
   > +  if (sym == (asymbol **) NULL)
   > +    i = count;
   > +  else
   > +    {
   > +      for (i = 0; i < count; i++, sym++)

   Something like 

	   struct elf_link_hash_entry *gp;
	   gp = elf_link_hash_lookup (elf_hash_table (info), "_gp",
				      false, false, false)

   should work, no?  Better than a loop over the symbols.

We'd have to be careful about any such change to make sure that the
assembler still generated the right value for a GP relative reloc to a
section symbol.

Ian

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