<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libelf/elf_data.c, branch releng/10.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-02-19T03:23:13Z</updated>
<entry>
<title>- Make sure to set an error code when trying to obtain a data descriptor for</title>
<updated>2013-02-19T03:23:13Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-02-19T03:23:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9be24c38b82ec7d9cb0b88d680d0b28ae8c8358b'/>
<id>urn:sha1:9be24c38b82ec7d9cb0b88d680d0b28ae8c8358b</id>
<content type='text'>
  a section of type SHT_NULL.
- Update the man page to reflect the fact that elf_getdata() and
  elf_rawdata() may return with an error of ELF_E_SECTION.

PR:		bin/175491
Approved by:	emaste (co-mentor)
MFC after:	1 week
</content>
</entry>
<entry>
<title>For zero-sized sections, set the `d_buf` field of the `Elf_Data`</title>
<updated>2011-05-07T11:04:36Z</updated>
<author>
<name>Kai Wang</name>
<email>kaiw@FreeBSD.org</email>
</author>
<published>2011-05-07T11:04:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08a7f479dd4fcded774045e1526f8b4941959a3c'/>
<id>urn:sha1:08a7f479dd4fcded774045e1526f8b4941959a3c</id>
<content type='text'>
descriptor returned by `elf_rawdata()` to NULL.

Obtained from:	elftoolchain
</content>
</entry>
<entry>
<title>Do not allocate buffer to hold data for zero-sized sections.</title>
<updated>2011-01-25T19:17:50Z</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2011-01-25T19:17:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1bc9325f8ac05aa5b6fca13777a995ae79f93281'/>
<id>urn:sha1:1bc9325f8ac05aa5b6fca13777a995ae79f93281</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Perform additional checks when translating between file and memory</title>
<updated>2010-07-21T10:25:02Z</updated>
<author>
<name>Kai Wang</name>
<email>kaiw@FreeBSD.org</email>
</author>
<published>2010-07-21T10:25:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f0f10541db7240f5b549bd2590c1eec9f3d17e4e'/>
<id>urn:sha1:f0f10541db7240f5b549bd2590c1eec9f3d17e4e</id>
<content type='text'>
representations of ELF types.

The ELF(3) API allows applications to request a conversion that is
`in-place', i.e., with source and destinations data buffers being
the same.  However, the file and memory sizes of ELF sections that
have additional internal structure, such as those of type `Elf_Note',
or `Elf_GNU_Hash_Header', can be determined only known after the
type-specific headers that comprise the first few words in these
sections are read and translated.

Pass in the size of destination buffer to type translation routines
in "libelf_convert.m4" and have these routines return an error code
if the translated data would not fit inside the destination buffer.

Obtained from:	elftoolchain
MFC after:		1 month
</content>
</entry>
<entry>
<title>- Correctly handle sections of type SHT_NOBITS.  For these sections:</title>
<updated>2010-07-21T08:54:46Z</updated>
<author>
<name>Kai Wang</name>
<email>kaiw@FreeBSD.org</email>
</author>
<published>2010-07-21T08:54:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ee5b008fbbb4c56773ee3c4536903d758d94bea'/>
<id>urn:sha1:7ee5b008fbbb4c56773ee3c4536903d758d94bea</id>
<content type='text'>
  - 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
</content>
</entry>
<entry>
<title>Correct a typo.</title>
<updated>2007-03-19T03:52:20Z</updated>
<author>
<name>Joseph Koshy</name>
<email>jkoshy@FreeBSD.org</email>
</author>
<published>2007-03-19T03:52:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4864e6c230eecebeed12139fd3892aa86d444370'/>
<id>urn:sha1:4864e6c230eecebeed12139fd3892aa86d444370</id>
<content type='text'>
Submitted by:	 Kai Wang &lt;kaiw27 at gmail dot com&gt;
</content>
</entry>
<entry>
<title>MFP4: Add an implementation of the ELF(3) and GELF(3) API set.</title>
<updated>2006-11-11T17:16:35Z</updated>
<author>
<name>Joseph Koshy</name>
<email>jkoshy@FreeBSD.org</email>
</author>
<published>2006-11-11T17:16:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3eb1a62e694a65c67f6f86ca86a47dc06c93f1ee'/>
<id>urn:sha1:3eb1a62e694a65c67f6f86ca86a47dc06c93f1ee</id>
<content type='text'>
Bump __FreeBSD_version.

Reviewed by:	jb
</content>
</entry>
</feed>
