Add .debug_gdb_scripts section to PE linker scripts.
authorNick Clifton <nickc@redhat.com>
Mon, 15 May 2017 12:12:49 +0000 (13:12 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 15 May 2017 12:12:49 +0000 (13:12 +0100)
PR ld/21459
* scripttempl/pe.sc: Add .debug_gdb_scripts section.
* scripttempl/pep.sc: Likewise.

ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc

index 7e22adfc2e7d92dff1da455806404c273525e919..8e31ca80acd09ba8e0990281f35965fb936ebbef 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-15  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/21459
+       * scripttempl/pe.sc: Add .debug_gdb_scripts section.
+       * scripttempl/pep.sc: Likewise.
+
 2017-05-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp: Run property-x86-3.
index 9981848c1cf0b08889a024821b63293d36030a1e..9f7b2b220ee283a40a9ee6a3cb2e017ab28bb1a9 100644 (file)
@@ -402,5 +402,15 @@ SECTIONS
   {
     *(.zdebug_types${RELOCATING+ .gnu.linkonce.wt.*})
   }
+
+  /* For Go and Rust.  */
+  .debug_gdb_scripts ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.debug_gdb_scripts)
+  }
+  .zdebug_gdb_scripts ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.zdebug_gdb_scripts)
+  }
 }
 EOF
index 16dc57f067d59d402c53d034b46fe36b96e62826..57eb75c51c85d900f2d6dcf73c23712d69938485 100644 (file)
@@ -415,5 +415,15 @@ SECTIONS
   {
     *(.zdebug_types${RELOCATING+ .zdebug.gnu.linkonce.wt.*})
   }
+
+  /* For Go and Rust.  */
+  .debug_gdb_scripts ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.debug_gdb_scripts)
+  }
+  .zdebug_gdb_scripts ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.zdebug_gdb_scripts)
+  }
 }
 EOF