7ee5b008fb
- 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. [1] - 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. Obtained from: elftoolchain MFC after: 1 month
# $FreeBSD$ # $NetBSD$ libelf: a BSD-licensed implementation of the ELF(3)/GELF(3) API. Documentation: * Manual page elf.3 contains an overview of the library. Other manual pages document individual APIs in the library. * A tutorial "libelf by Example" is available at: http://people.freebsd.org/~jkoshy/download/libelf/article.html For ongoing development please see http://elftoolchain.sourceforge.net/