Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2010 12:06:02 +0000 (UTC)
From:      Kai Wang <kaiw@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/cddl/contrib/opensolaris/tools/ctf/cvt output.c src/lib/libelf elf_data.c elf_getdata.3
Message-ID:  <201009041207.o84C7H4P069527@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kaiw        2010-09-04 12:06:02 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    cddl/contrib/opensolaris/tools/ctf/cvt output.c 
    lib/libelf           elf_data.c elf_getdata.3 
  Log:
  SVN rev 212198 on 2010-09-04 12:06:02Z by kaiw
  
  MFC r210324, r210438.
  
  r210324:
    - Correctly handle sections of type SHT_NOBITS.  For these sections:
      - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure
        that has its "d_buf" member set to NULL and "d_size" member set to
        the nominal 'size' of the section.
      - Update the manual page for these functions.
    - Fix a memory leak in an error handling path inside elf_getdata().
    - Use _libelf_allocate_data() in elf_newdata() for consistency.
  
  r210438: (np)
    Catch up with r210324.  d_buf will be NULL for SHT_NOBITS sections, do not
    attempt to copy from it in that case.
  
  Revision  Changes    Path
  1.2.4.1   +1 -1      src/cddl/contrib/opensolaris/tools/ctf/cvt/output.c
  1.2.10.2  +25 -18    src/lib/libelf/elf_data.c
  1.2.10.3  +27 -1     src/lib/libelf/elf_getdata.3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009041207.o84C7H4P069527>