]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r210324, r210438.
authorkaiw <kaiw@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Sep 2010 12:06:02 +0000 (12:06 +0000)
committerkaiw <kaiw@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 4 Sep 2010 12:06:02 +0000 (12:06 +0000)
commit6383097b38c4366b8b37e36385fcfcf67ff119f1
tree22e1954ddfd4a1d474a9a96d6e5832a91747712d
parentf9ec77ede727e175c39a0e336b5d89fe5a01271d
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/tools/ctf/cvt/output.c
lib/libelf/elf_data.c
lib/libelf/elf_getdata.3