Browse Source
sections when checking for overlap. Clarify error message concerns load address. testsuite/ * ld-scripts/rgn-at4.t: New. * ld-scripts/rgn-at4.d: New.cgen-1_1-branch
5 changed files with 41 additions and 2 deletions
@ -0,0 +1,13 @@ |
|||
# name: rgn-at4 |
|||
# source: rgn-at.s |
|||
# ld: -T rgn-at4.t |
|||
# objdump: -w -h |
|||
|
|||
.*: file format .* |
|||
|
|||
Sections: |
|||
Idx +Name +Size +VMA +LMA +File off +Algn +Flags |
|||
0 .text +0+[0-9a-f][0-9a-f] +0+0010000 +0+0020000 +.* |
|||
1 .data +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+00200[0-9a-f]+ +.* |
|||
2 .bss +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+00200[0-9a-f]+ +.* |
|||
3 .trail +0+[0-9a-f][0-9a-f] +0+00100[0-9a-f]+ +0+00200[0-9a-f]+ +.* |
|||
@ -0,0 +1,14 @@ |
|||
/* Memory region at test, >AT should propagate by default */ |
|||
|
|||
MEMORY { |
|||
ram : ORIGIN = 0x10000, LENGTH = 0x100 |
|||
rom : ORIGIN = 0x20000, LENGTH = 0x200 |
|||
} |
|||
_start = 0x1000; |
|||
SECTIONS { |
|||
.text : { *(.text) } >ram AT>rom |
|||
.data : { *(.data) } >ram |
|||
.bss : { *(.bss) } >ram |
|||
.trail : { LONG(5) } >ram |
|||
/DISCARD/ : { *(*) } |
|||
} |
|||
Loading…
Reference in new issue