From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15257 invoked by alias); 16 Oct 2003 18:40:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15222 invoked from network); 16 Oct 2003 18:40:55 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sources.redhat.com with SMTP; 16 Oct 2003 18:40:55 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 1668F357B; Thu, 16 Oct 2003 11:40:53 -0700 (PDT) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.9/8.12.9) with ESMTP id h9GIerN2018345; Thu, 16 Oct 2003 11:40:53 -0700 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.9/8.12.9/Submit) id h9GIeofA018339; Thu, 16 Oct 2003 11:40:50 -0700 Date: Thu, 16 Oct 2003 18:40:00 -0000 Message-Id: <200310161840.h9GIeofA018339@magilla.sf.frob.com> From: Roland McGrath To: binutils@sources.redhat.com Cc: gdb-patches@sources.redhat.com Subject: [BFD PATCH] section alignment when reading core files X-Zippy-Says: I have nostalgia for the late Sixties! In 1969 I left my laundry with a hippie!! During an unauthorized Tupperware party it was chopped & diced! X-SW-Source: 2003-10/txt/msg00553.txt.bz2 Can I get some comment on this trivial patch? I posted it before, and silence. It is trivial, and I think obviously correct. Ok to commit? Thanks, Roland 2003-10-07 Roland McGrath * elf.c (_bfd_elf_make_section_from_phdr): Set alignment_power of new section from p_align header field. Index: elf.c =================================================================== RCS file: /cvs/src/src/bfd/elf.c,v retrieving revision 1.201 diff -u -b -p -r1.201 elf.c --- elf.c 16 Oct 2003 04:11:05 -0000 1.201 +++ elf.c 16 Oct 2003 18:38:48 -0000 @@ -2206,6 +2206,7 @@ _bfd_elf_make_section_from_phdr (bfd *ab newsect->_raw_size = hdr->p_filesz; newsect->filepos = hdr->p_offset; newsect->flags |= SEC_HAS_CONTENTS; + newsect->alignment_power = bfd_log2 (hdr->p_align); if (hdr->p_type == PT_LOAD) { newsect->flags |= SEC_ALLOC;