binutils-gdb/ld/testsuite/ld-msp430-elf/msp430-tiny-rom.ld
Alan Modra e7d942e014 Use bfd_rename_section in msp430.em
* 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.
2022-11-28 17:29:11 +10:30

55 lines
862 B
Plaintext

/* Script for ld testsuite */
OUTPUT_ARCH(msp430)
ENTRY(_start)
MEMORY
{
ROM : ORIGIN = 0x0, LENGTH = 0x2
RAM : ORIGIN = 0x2, LENGTH = 0x1fe
HIROM : ORIGIN = 0x200, LENGTH = 0x1000
}
SECTIONS
{
.text :
{
PROVIDE (_start = .);
. = ALIGN(2);
*(.text .stub .text.* .gnu.linkonce.t.* .text:*)
} > ROM
.rodata :
{
*(.rodata.* .rodata)
} > ROM
.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 :
{
. = ALIGN(2);
*(.upper.text.* .upper.text)
} > HIROM
.upper.rodata :
{
*(.upper.rodata.* .upper.rodata)
} > HIROM
}