summaryrefslogtreecommitdiff
path: root/ld/scripttempl/misc-sections.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/misc-sections.sc')
-rw-r--r--ld/scripttempl/misc-sections.sc20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/scripttempl/misc-sections.sc b/ld/scripttempl/misc-sections.sc
new file mode 100644
index 00000000000..115ef1a5579
--- /dev/null
+++ b/ld/scripttempl/misc-sections.sc
@@ -0,0 +1,20 @@
+# Copyright (C) 2014-2023 Free Software Foundation, Inc.
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+#
+cat <<EOF
+ /* Stabs debugging sections. */
+ .stab 0 : { *(.stab) }
+ .stabstr 0 : { *(.stabstr) }
+ .stab.excl 0 : { *(.stab.excl) }
+ .stab.exclstr 0 : { *(.stab.exclstr) }
+ .stab.index 0 : { *(.stab.index) }
+ .stab.indexstr 0 : { *(.stab.indexstr) }
+
+ .comment : { *(.comment); LINKER_VERSION; }
+
+ .gnu.build.attributes : { *(.gnu.build.attributes${RELOCATING+ .gnu.build.attributes.*}) }
+
+EOF