[sw/device] Keep .text.unlikely in the linker script
To avoid errors about symbols being dropped as they are in
.text.unlikely ensure that .text.unlikely remains in the binary.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
diff --git a/sw/device/boot_rom/rom_link.ld b/sw/device/boot_rom/rom_link.ld
index cc020a7..8a7e4f3 100644
--- a/sw/device/boot_rom/rom_link.ld
+++ b/sw/device/boot_rom/rom_link.ld
@@ -40,6 +40,7 @@
_stext = .;
*(.text.startup)
*(.text)
+ *(.text.unlikely)
_etext = .;
__CTOR_LIST__ = .;
LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
diff --git a/sw/device/exts/common/link.ld b/sw/device/exts/common/link.ld
index 4385ce2..b2ff344 100644
--- a/sw/device/exts/common/link.ld
+++ b/sw/device/exts/common/link.ld
@@ -38,6 +38,7 @@
_stext = .;
*(.text.startup)
*(.text)
+ *(.text.unlikely)
_etext = .;
__CTOR_LIST__ = .;
LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)