From owner-cvs-src-old@FreeBSD.ORG Sun Oct 10 12:20:26 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D91C10656A3 for ; Sun, 10 Oct 2010 12:20:26 +0000 (UTC) (envelope-from kaiw@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDA28FC17 for ; Sun, 10 Oct 2010 12:20:26 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9ACKQoF052482 for ; Sun, 10 Oct 2010 12:20:26 GMT (envelope-from kaiw@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9ACKQ9G052481 for cvs-src-old@freebsd.org; Sun, 10 Oct 2010 12:20:26 GMT (envelope-from kaiw@repoman.freebsd.org) Message-Id: <201010101220.o9ACKQ9G052481@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kaiw@repoman.freebsd.org using -f From: Kai Wang Date: Sun, 10 Oct 2010 12:20:04 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/lib/libelf elf_update.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2010 12:20:26 -0000 kaiw 2010-10-10 12:20:04 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libelf elf_update.c Log: SVN rev 213670 on 2010-10-10 12:20:04Z by kaiw MFC r212373: 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. Revision Changes Path 1.5.2.5 +6 -11 src/lib/libelf/elf_update.c