mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-25 02:03:37 +08:00
a2cab75396
* ldlang.c (lang_size_sections_1): Don't check LMA overflow on non-load sections. ld/testsuite/ * ld-scripts/rgn-over.exp: Allow -ok file names to pass. * ld-scripts/rgn-over8.s: New. * ld-scripts/rgn-over8.t: New. * ld-scripts/rgn-over8-ok.d: New.
14 lines
322 B
Raku
14 lines
322 B
Raku
/* Memory region overflow tests: bss to LMA doesn't cause overflow. */
|
|
|
|
MEMORY {
|
|
rom (rwx) : ORIGIN = 0, LENGTH = 2048
|
|
ram (rwx) : ORIGIN = 0x1000, LENGTH = 2048
|
|
}
|
|
_start = 0x0;
|
|
SECTIONS {
|
|
.text : { *(.text) } >rom AT>rom
|
|
.data : { *(.data) } >ram AT>rom
|
|
.bss : { *(.bss) } >ram AT>rom
|
|
/DISCARD/ : { *(*) }
|
|
}
|