From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25238 invoked by alias); 12 Sep 2006 11:27:28 -0000 Received: (qmail 25228 invoked by uid 22791); 12 Sep 2006 11:27:27 -0000 X-Spam-Check-By: sourceware.org Received: from gollum.portugalmail.pt (HELO gollum.portugalmail.pt) (195.245.179.77) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Sep 2006 11:27:22 +0000 Received: from [127.0.0.1] (213-205-88-139.net.novis.pt [213.205.88.139]) by gollum.portugalmail.pt (Postfix) with ESMTP id D9C69152661; Tue, 12 Sep 2006 12:24:41 +0100 (WEST) Message-ID: <450699FB.7090101@portugalmail.pt> Date: Tue, 12 Sep 2006 11:27:00 -0000 From: Pedro Alves User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: binutils@sourceware.org Subject: Re: [PATCH] Make the compiler do the math 2. References: <4505CF00.6060805@portugalmail.pt> In-Reply-To: <4505CF00.6060805@portugalmail.pt> Content-Type: multipart/mixed; boundary="------------070305070301030507030404" X-Antivirus: avast! (VPS 0631-0, 31-07-2006), Outbound message X-Antivirus-Status: Clean X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00082.txt.bz2 This is a multi-part message in MIME format. --------------070305070301030507030404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 343 Same patch with the formatting inline with GNU standards. Sorry again for the noise. Please review and commit. Cheers, Pedro Alves --- bfd/ChangeLog 2006-09-12 Pedro Alves * elf.c (_bfd_elf_make_section_from_shdr): New macro DSECT. (_bfd_elf_make_section_from_shdr, debug_sections): Use DSECT. --------------070305070301030507030404 Content-Type: text/plain; name="elf.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="elf.c.diff" Content-length: 1535 --- elf.c.org 2006-09-12 07:12:05.000000000 -0400 +++ elf.c 2006-09-12 07:17:57.000000000 -0400 @@ -816,22 +816,24 @@ _bfd_elf_make_section_from_shdr (bfd *ab int len; } debug_sections [] = { - { "debug", 5 }, /* 'd' */ - { NULL, 0 }, /* 'e' */ - { NULL, 0 }, /* 'f' */ - { "gnu.linkonce.wi.", 16 }, /* 'g' */ - { NULL, 0 }, /* 'h' */ - { NULL, 0 }, /* 'i' */ - { NULL, 0 }, /* 'j' */ - { NULL, 0 }, /* 'k' */ - { "line", 4 }, /* 'l' */ - { NULL, 0 }, /* 'm' */ - { NULL, 0 }, /* 'n' */ - { NULL, 0 }, /* 'o' */ - { NULL, 0 }, /* 'p' */ - { NULL, 0 }, /* 'q' */ - { NULL, 0 }, /* 'r' */ - { "stab", 4 } /* 's' */ +#define DSECT(STR) { (STR), ((STR) ? sizeof (STR) - 1 : 0) } + DSECT ("debug"), /* 'd' */ + DSECT (NULL), /* 'e' */ + DSECT (NULL), /* 'f' */ + DSECT ("gnu.linkonce.wi."), /* 'g' */ + DSECT (NULL), /* 'h' */ + DSECT (NULL), /* 'i' */ + DSECT (NULL), /* 'j' */ + DSECT (NULL), /* 'k' */ + DSECT ("line"), /* 'l' */ + DSECT (NULL), /* 'm' */ + DSECT (NULL), /* 'n' */ + DSECT (NULL), /* 'o' */ + DSECT (NULL), /* 'p' */ + DSECT (NULL), /* 'q' */ + DSECT (NULL), /* 'r' */ + DSECT ("stab") /* 's' */ +#undef DSECT }; if (name [0] == '.') --------------070305070301030507030404--