[avr,applied] PR17107: Add more .gnu.linkonce section patterns to avr.sc
Commit Message
Added rules for .gnu.linkonce.t* and .gnu.linkone.b* to avr.sc.
Applied to trunk as obvious.
Johann
--
AVR: PR17107 - Add more .gnu.linkonce to avr.sc
This patch adds pattern rules for .gnu.linkonce.t* and .gnu.linkone.b*
to the .text resp. .bss output sections. Though that's probably
not needed any more since G++ is using COMDAT today.
.gnu.linkonce.d* for .data and .gnu.linkone.r* for .rodata are
already there.
PR ld/17107
ld/
* scripttempl/avr.sc (.bss) [RELOCATING]: Add *(.gnu.linkonce.b*).
(.text) [RELOCATING]: Add *(.gnu.linkonce.t*).
@@ -271,6 +271,8 @@ cat <<EOF
*(.fini0) /* Infinite loop after program termination. */
KEEP (*(.fini0))
+ *(.gnu.linkonce.t*)
+
/* For code that needs not to reside in the lower progmem. */
*(.hightext)
*(.hightext*)
@@ -336,6 +338,7 @@ cat <<EOF
${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss)
${RELOCATING+ *(.bss*)}
+ ${RELOCATING+ *(.gnu.linkonce.b*)}
${RELOCATING+ *(COMMON)}
${RELOCATING+ PROVIDE (__bss_end = .) ; }
} ${RELOCATING+ > data}