1 # Copyright (C) 2014-2025 Free Software Foundation, Inc. 2 # 3 # Copying and distribution of this file, with or without modification, 4 # are permitted in any medium without royalty provided the copyright 5 # notice and this notice are preserved. 6 7 # This script fragment gathers together some of the more miscellaneous 8 # sections that might appear in a linker's input. It can be invoked 9 # with a single parameter which is the memory region into which loadable 10 # sections should be placed. If the parameter is missing, no memory 11 # section placement is used. 12 13 if test "x$2" = "x" ; 14 then 15 REGION="" 16 else 17 REGION="> $2" 18 fi 19 20 cat <<EOF 21 /* Stabs debugging sections. */ 22 .stab 0 : { *(.stab) } 23 .stabstr 0 : { *(.stabstr) } 24 .stab.excl 0 : { *(.stab.excl) } 25 .stab.exclstr 0 : { *(.stab.exclstr) } 26 .stab.index 0 : { *(.stab.index) } 27 .stab.indexstr 0 : { *(.stab.indexstr) } 28 29 .comment 0 (INFO) : { *(.comment); LINKER_VERSION; } 30 31 .gnu.build.attributes : { *(.gnu.build.attributes${RELOCATING+ .gnu.build.attributes.*}) } 32 33 EOF 34