Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-elf/overlay.t

18 lines
461 B
Perl
Raw Normal View History

2023-03-06 14:48:14 +01:00
SECTIONS
{
. = SIZEOF_HEADERS;
.text : { *(.text) }
OVERLAY 0x1000 : AT (0x4000)
{
.text1 {*(.text1)}
.text2 {*(.text2)}
.silly-name1 { *(.silly-name1) } = 0
.silly-name2 { *(.silly-name2) } = 0
} = 0
.silly-name3 : { *(.silly-name3) } = 0
.silly-name4 : { *(.silly-name4) } = 0
/DISCARD/ : { *(.*) }
ASSERT(ADDR(.text1)==ADDR(.text2), "overlay error")
ASSERT(ADDR(.silly-name1)==ADDR(.silly-name2), "silly overlay error")
}