From 2cfa18a94ae46b19508d7adbcc40bdc3586d00e4 Mon Sep 17 00:00:00 2001
From: Nick Clifton <nickc@redhat.com>
Date: Wed, 24 Apr 2013 15:28:12 +0000
Subject: [PATCH] 	PR ld/15389 	* scripttempl/avr.sc: Add
 .note.gnu.build-id section.

---
 ld/ChangeLog          | 5 +++++
 ld/scripttempl/avr.sc | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index d9ebc3d1306..21fdd199629 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-24  Nick Clifton  <nickc@redhat.com>
+
+	PR ld/15389
+	* scripttempl/avr.sc: Add .note.gnu.build-id section.
+
 2013-04-22  Alan Modra  <amodra@gmail.com>
 
 	* emultempl/ppc64elf.em (ppc_create_output_section_statements):
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index 80116085626..fde65f612ff 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -232,6 +232,7 @@ SECTIONS
   .stab.index 0 : { *(.stab.index) }
   .stab.indexstr 0 : { *(.stab.indexstr) }
   .comment 0 : { *(.comment) } 
+  .note.gnu.build-id : { *(.note.gnu.build-id) }
 EOF
 
 source $srcdir/scripttempl/DWARF.sc