mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
20e5635130
* ldlang.c (lang_check_section_addresses): Also report size of overflow for any overflowed memory regions. (os_region_check): Diagnose an overflowed region only once per region. Do not reset region->current on overflow. 2007-10-17 Zack Weinberg <zack@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ld-scripts/rgn-over.exp: New driver. * ld-scripts/rgn-over.s: New file. * ld-scripts/rgn-over1.d, ld-scripts/rgn-over1.t, ld-scripts/rgn-over2.d, ld-scripts/rgn-over2.t, ld-scripts/rgn-over3.d, ld-scripts/rgn-over3.t, ld-scripts/rgn-over4.d, ld-scripts/rgn-over4.t, ld-scripts/rgn-over5.d, ld-scripts/rgn-over5.t, ld-scripts/rgn-over6.d, ld-scripts/rgn-over6.t, ld-scripts/rgn-over7.d, ld-scripts/rgn-over7.t: New test cases.
15 lines
347 B
Raku
15 lines
347 B
Raku
/* Memory region overflow tests: overflow VMA but not LMA. */
|
|
|
|
MEMORY {
|
|
bss (rwx) : ORIGIN = 0, LENGTH = 0
|
|
r1 (rwx) : ORIGIN = 0x1000, LENGTH = 8
|
|
v1 (rwx) : ORIGIN = 0x2000, LENGTH = 24
|
|
}
|
|
_start = 0x1000;
|
|
SECTIONS {
|
|
.bss : { *(.bss) } > bss
|
|
.text : { *(.txt) } > r1 AT> v1
|
|
.data : { *(.dat) } > r1 AT> v1
|
|
/DISCARD/ : { *(*) }
|
|
}
|