From 5da7d44acbd5f421aba5bb0255102c86cac504ff Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 22 Oct 2014 00:58:50 +0000 Subject: [PATCH] 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. --- contrib/elftoolchain/libelf/libelf_align.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/elftoolchain/libelf/libelf_align.c b/contrib/elftoolchain/libelf/libelf_align.c index 9550c5bd49ea..58a2adf0386e 100644 --- a/contrib/elftoolchain/libelf/libelf_align.c +++ b/contrib/elftoolchain/libelf/libelf_align.c @@ -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),