old-cross-binutils/ld/testsuite/ld-scripts/rgn-over8.t
Nathan Sidwell a2cab75396 ld/
* 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.
2008-04-28 12:45:34 +00:00

13 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/ : { *(*) }
}