~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to bfd/elf-ifunc.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
      return FALSE;
186
186
    }
187
187
 
 
188
  htab = elf_hash_table (info);
 
189
 
188
190
  /* Return and discard space for dynamic relocations against it if
189
191
     it is never referenced in a non-shared object.  */
190
192
  if (!h->ref_regular)
192
194
      if (h->plt.refcount > 0
193
195
          || h->got.refcount > 0)
194
196
        abort ();
195
 
      h->got.offset = (bfd_vma) -1;
 
197
      h->got = htab->init_got_offset;
 
198
      h->plt = htab->init_plt_offset;
196
199
      *head = NULL;
197
200
      return TRUE;
198
201
    }
203
206
  else
204
207
    sizeof_reloc = bed->s->sizeof_rel;
205
208
 
206
 
  htab = elf_hash_table (info);
207
 
 
208
209
  /* When building a static executable, use .iplt, .igot.plt and
209
210
     .rel[a].iplt sections for STT_GNU_IFUNC symbols.  */
210
211
  if (htab->splt != NULL)