2007-10-17 Zack Weinberg <zack@codesourcery.com>
* 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.
2007-10-18 03:26:10 +08:00
# name : rgn - over6
# source : rgn - over . s
# ld : - T rgn - over6 . t - Map tmpdir / rgn - over6 . map
2009-03-03 01:27:36 +08:00
# error : \ A [ ^ \ n ] * ? ld [ ^ : \ n ] * ? : [ ^ \ n ] * ? section `\.text' will not fit in region ` r1 ' \ n [ ^ \ n ] * ? ld [ ^ : \ n ] * ? : [ ^ \ n ] * ? section `\.text' will not fit in region ` v1 ' \ n [ ^ \ n ] * ? ld [ ^ : \ n ] * ? : region `r1' overflowed by 16 bytes\n[^ \n]*?ld[^:\n]*?: region ` v1 ' overflowed by 16 bytes \ Z
2007-10-17 Zack Weinberg <zack@codesourcery.com>
* 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.
2007-10-18 03:26:10 +08:00
Discarded input sections
# . . .
Memory \ s + Configuration
Name \ s + Origin \ s + Length \ s + Attributes
bss \ s + 0x0 + 0000 \ s + 0x0 + 0000 \ s + xrw
r1 \ s + 0x0 + 1000 \ s + 0x0 + 000 8 \ s + xrw
v1 \ s + 0x0 + 2000 \ s + 0x0 + 000 8 \ s + xrw
\ * default \ * \ s + 0x0 + 0000 \ s + 0xf + ffff
Linker \ s + script \ s + and \ s + memory \ s + map
\ s * 0x0 + 1000 \ s + _start \ s + = \ s + 0x1000
\ s * \ . bss \ s + 0x0 + 0000 \ s + 0x0
\ s * \ * \ ( \ . bss \ )
\ s * \ . bss \ s + 0x0 + 0000 \ s + 0x0 \ s + . * ?
\ s * \ . text \ s + 0x0 + 1000 \ s + 0xc \ s + load \ s + address \ s + 0x0 + 2000
\ s * \ * \ ( \ . txt \ )
\ s * \ . txt \ s + 0x0 + 1000 \ s + 0xc \ s + . * ?
\ s * \ . data \ s + 0x0 + 100 c \ s + 0xc \ s + load \ s + address \ s + 0x0 + 200 c
\ s * \ * \ ( \ . dat \ )
\ s * \ . dat \ s + 0x0 + 100 c \ s + 0xc \ s + . * ?
/ DISCARD /
\ * \ ( \ * \ )
LOAD \ s + . * ?
OUTPUT \ ( . * ? \ )
2007-10-26 14:40:25 +08:00
# pass