Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2014 00:58:51 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273442 - head/contrib/elftoolchain/libelf
Message-ID:  <201410220058.s9M0wpug004576@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Wed Oct 22 00:58:50 2014
New Revision: 273442
URL: https://svnweb.freebsd.org/changeset/base/273442

Log:
  GCC for PowerPC does not align  .note sections to 4 bytes.  When
  running ctfmerge on its objects, libelf asserts as it expects
  .note sections to be 4-byte aligned.  Change that expectation.
  
  Approved by:	jkoshy@
  Obtained from:	Juniper Networks, Inc.

Modified:
  head/contrib/elftoolchain/libelf/libelf_align.c

Modified: head/contrib/elftoolchain/libelf/libelf_align.c
==============================================================================
--- head/contrib/elftoolchain/libelf/libelf_align.c	Wed Oct 22 00:23:43 2014	(r273441)
+++ head/contrib/elftoolchain/libelf/libelf_align.c	Wed Oct 22 00:58:50 2014	(r273442)
@@ -109,7 +109,7 @@ static struct align falign[ELF_T_NUM] = 
 	[ELF_T_LWORD]	= FALIGN(8,8),
 	[ELF_T_MOVE]	= FALIGN(8,8),
 	[ELF_T_MOVEP] 	= UNSUPPORTED(),
-	[ELF_T_NOTE]	= FALIGN(4,4),
+	[ELF_T_NOTE]	= FALIGN(1,1),
 	[ELF_T_OFF]	= FALIGN(4,8),
 	[ELF_T_PHDR]	= FALIGN(4,8),
 	[ELF_T_REL]	= FALIGN(4,8),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410220058.s9M0wpug004576>