Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lhgtp-0001Jd-3R for mharc-grub-devel@gnu.org; Thu, 12 Mar 2009 05:08:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lhgtm-0001Hs-QS for grub-devel@gnu.org; Thu, 12 Mar 2009 05:08:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lhgtl-0001Gp-Qe for grub-devel@gnu.org; Thu, 12 Mar 2009 05:08:18 -0400 Received: from [199.232.76.173] (port=57161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lhgtl-0001Gf-Dk for grub-devel@gnu.org; Thu, 12 Mar 2009 05:08:17 -0400 Received: from [74.93.104.97] (port=51607 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lhgtf-0001B6-GS for grub-devel@gnu.org; Thu, 12 Mar 2009 05:08:15 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 6EDDBC8D95C; Thu, 12 Mar 2009 02:07:57 -0700 (PDT) Date: Thu, 12 Mar 2009 02:07:57 -0700 (PDT) Message-Id: <20090312.020757.187232522.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: <49B8C686.5060508@gmail.com> References: <20090311211541.GC29956@thorin> <49B82B65.3080506@gmail.com> <49B8C686.5060508@gmail.com> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: ELF bugfixes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 09:08:19 -0000 From: phcoder Date: Thu, 12 Mar 2009 09:23:34 +0100 > Index: include/grub/elf.h > =================================================================== > --- include/grub/elf.h (revision 2036) > +++ include/grub/elf.h (working copy) > @@ -77,7 +77,7 @@ > Elf32_Half e_shentsize; /* Section header table entry size */ > Elf32_Half e_shnum; /* Section header table entry count */ > Elf32_Half e_shstrndx; /* Section header string table index */ > -} Elf32_Ehdr; > +} __attribute__ ((packed)) Elf32_Ehdr; > There is no reason why you should need the packed attribute here. I can't think of any cpu where this could even remotely be necessary. And if it's not necessary, all it does it emit terribly suboptimal code on RISC cpus.