* emultempl/msp430.em (add_region_prefix <REGION_EITHER>): Use
bfd_rename_section.
* testsuite/ld-msp430-elf/msp430-tiny-rom.ld: Handle varian data
and bss input sections.
bfd_rename_section (s, concat (".lower", curr_name, NULL));
break;
case REGION_EITHER:
- s->name = concat (".either", curr_name, NULL);
+ bfd_rename_section (s, concat (".either", curr_name, NULL));
break;
default:
/* Unreachable. */
.data :
{
. = ALIGN(2);
+ *(.lower.data.* .lower.data)
*(.data.* .data)
+ *(.either.data.* .either.data)
+ *(.upper.data.* .upper.data)
} > RAM AT> ROM
.bss :
{
. = ALIGN(2);
+ *(.lower.bss.* .lower.bss)
*(.bss.* .bss)
+ *(.either.bss.* .either.bss)
+ *(.upper.bss.* .upper.bss)
} > RAM
.upper.text :