Kai Wang ea22f625a7 libelf is overly strict about the type and alignment of Elf_Data
objects inside one ELF section, which prevents the creation of a ELF
section with mixed data types. For example, gcc LTO use libelf to
create a .gnu_lto_XXX section that contains integers and a string
table, which doesn't work with our libelf implementation.

The changes made in this commit include:
* Allow Elf_Data type to be different than section type.
* Relax Elf_Data alignment check.
* Align each Elf_Data by their own alignment instead of section alignment.

MFC after:   1 month
2010-09-09 18:51:50 +00:00
..
2010-08-03 17:40:09 +00:00
2007-03-08 04:01:30 +00:00
2009-01-05 05:14:26 +00:00

# $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/