mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
39a7b38fac
PR 25829 * testsuite/ld-scripts/script.exp (check_script) (extract_symbol_test): Make test addresses fit in 16 bits. * testsuite/ld-scripts/memory.t: Likewise. * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise. * testsuite/ld-scripts/default-script.t (_START): Likewise. * testsuite/ld-scripts/default-script1.d: Likewise. * testsuite/ld-scripts/default-script2.d: Likewise. * testsuite/ld-scripts/default-script3.d: Likewise. * testsuite/ld-scripts/default-script4.d: Likewise. * testsuite/ld-scripts/empty-address-1.t: Likewise. * testsuite/ld-scripts/empty-address-1.d: Likewise. * testsuite/ld-scripts/empty-address-2a.d: Likewise. * testsuite/ld-scripts/empty-address-2b.d: Likewise. * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to fit target address size. * testsuite/ld-scripts/empty-address-1.s: Likewise. * testsuite/ld-scripts/empty-address-2.s: Likewise.
35 lines
585 B
Raku
35 lines
585 B
Raku
MEMORY
|
|
{
|
|
R_TEXTMEM (ARX) : ORIGIN = 0x100, LENGTH = 16K
|
|
R_DATAMEM (AW) : org = 0x1000, l = (4 * 1024)
|
|
}
|
|
|
|
REGION_ALIAS ("A_TEXTMEM", R_TEXTMEM);
|
|
REGION_ALIAS ("A_DATAMEM", R_DATAMEM);
|
|
|
|
REGION_ALIAS ("TEXTMEM", A_TEXTMEM);
|
|
REGION_ALIAS ("DATAMEM", A_DATAMEM);
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0;
|
|
.text :
|
|
{
|
|
text_start = ORIGIN (TEXTMEM);
|
|
*(.text)
|
|
*(.pr)
|
|
text_end = .;
|
|
} > TEXTMEM
|
|
|
|
data_start = ORIGIN (DATAMEM);
|
|
.data :
|
|
{
|
|
*(.data)
|
|
*(.rw)
|
|
data_end = .;
|
|
} >DATAMEM
|
|
|
|
fred = ORIGIN(DATAMEM) + LENGTH(DATAMEM);
|
|
tred = ORIGIN(TEXTMEM) + LENGTH(TEXTMEM);
|
|
}
|