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

« back to all changes in this revision

Viewing changes to libelf/elf32_newphdr.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:
124
124
  else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
125
125
           || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
126
126
    {
 
127
      if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))))
 
128
        {
 
129
          result = NULL;
 
130
          goto out;
 
131
        }
 
132
 
127
133
      /* Allocate a new program header with the appropriate number of
128
134
         elements.  */
129
135
      result = (ElfW2(LIBELFBITS,Phdr) *)