~ubuntu-branches/debian/lenny/elfutils/lenny

« back to all changes in this revision

Viewing changes to libelf/gelf_update_versym.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx, Christian Aichinger
  • Date: 2006-08-27 15:48:23 UTC
  • Revision ID: james.westby@ubuntu.com-20060827154823-gmbm698yux21k7fs
Tags: 0.123-2
[ Kurt Roeckx ]
* Add backend support for alpha: adding the registers.
* Add backend support for arm: adding regs and retval.
  Thanks to Eugeniy Meshcheryakov <eugeniy.meshcheryakov@googlemail.com>
* Add backend support for hppa, thanks to
  Eugeniy Meshcheryakov <eugeniy.meshcheryakov@googlemail.com>
* Add some missing ELFOSABI_* and EM_* to elf.h

[ Christian Aichinger ]
* Fix sparc backend retval
* Add mips backend.
* Rewrite the static backend so making changes to the backends
  is easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
  assert (sizeof (GElf_Versym) == sizeof (Elf64_Versym));
76
76
 
77
77
  /* Check whether we have to resize the data buffer.  */
78
 
  if (unlikely (ndx < 0)
 
78
  if (INVALID_NDX (ndx, GElf_Versym)
79
79
      || unlikely ((ndx + 1) * sizeof (GElf_Versym) > data_scn->d.d_size))
80
80
    {
81
81
      __libelf_seterrno (ELF_E_INVALID_INDEX);