public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro_alves@portugalmail.pt>
To: binutils@sourceware.org
Subject: Re: [PATCH] Make the compiler do the math 2.
Date: Tue, 12 Sep 2006 11:27:00 -0000	[thread overview]
Message-ID: <450699FB.7090101@portugalmail.pt> (raw)
In-Reply-To: <4505CF00.6060805@portugalmail.pt>

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

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  <pedro_alves@portugalmail.pt>

     * elf.c (_bfd_elf_make_section_from_shdr): New macro DSECT.
     (_bfd_elf_make_section_from_shdr, debug_sections): Use DSECT.

[-- Attachment #2: elf.c.diff --]
[-- Type: text/plain, Size: 1535 bytes --]

--- 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] == '.')

  reply	other threads:[~2006-09-12 11:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11 21:03 Pedro Alves
2006-09-12 11:27 ` Pedro Alves [this message]
2006-09-16 18:16   ` Nick Clifton
2006-09-17  3:39     ` Regression with strn-stuff (was: Re: [PATCH] Make the compiler do the math 2.) Hans-Peter Nilsson
2006-09-17 14:41       ` Regression with strn-stuff Nick Clifton
2006-09-17 18:58         ` Pedro Alves
2006-09-17 19:17           ` Hans-Peter Nilsson
2006-09-17 22:20             ` [PATCH]: " Pedro Alves
2006-09-19 10:37               ` Pedro Alves
2006-09-25 16:14                 ` Nick Clifton
2006-09-25 16:19                 ` Andreas Schwab
2006-09-17 19:08         ` Hans-Peter Nilsson
2006-09-25 16:09           ` Nick Clifton
2006-09-25 14:01     ` [PATCH] Make the compiler do the math 2 Andreas Schwab
2006-09-25 17:14       ` Nick Clifton
2006-09-25 19:37         ` Andreas Schwab
2006-09-25 20:38       ` Hans-Peter Nilsson
2006-09-25 22:23         ` Andreas Schwab
2006-09-26  8:49           ` Nick Clifton
2006-09-26 10:17           ` Nick Clifton
2006-09-26 10:30             ` Andreas Schwab
2006-09-26 12:38             ` Pedro Alves
2006-09-25 23:53         ` Pedro Alves
2006-09-28 13:25           ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=450699FB.7090101@portugalmail.pt \
    --to=pedro_alves@portugalmail.pt \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).