From 786e3eba7915df35df1d98a300e06f757336c75b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 15 May 2017 13:12:49 +0100 Subject: Add .debug_gdb_scripts section to PE linker scripts. PR ld/21459 * scripttempl/pe.sc: Add .debug_gdb_scripts section. * scripttempl/pep.sc: Likewise. --- ld/ChangeLog | 6 ++++++ ld/scripttempl/pe.sc | 10 ++++++++++ ld/scripttempl/pep.sc | 10 ++++++++++ 3 files changed, 26 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7e22adfc2e7..8e31ca80acd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-05-15 Nick Clifton + + PR ld/21459 + * scripttempl/pe.sc: Add .debug_gdb_scripts section. + * scripttempl/pep.sc: Likewise. + 2017-05-12 H.J. Lu * testsuite/ld-i386/i386.exp: Run property-x86-3. diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 9981848c1cf..9f7b2b220ee 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -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 diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index 16dc57f067d..57eb75c51c8 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -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 -- cgit v1.2.3-65-gdbad