* ld-scripts/assign-loc.d: New file. Test for assigning absolute
symbol to location counter. * ld-scripts/assign-loc.t: New file. Linker script for above test. * ld-scripts/expr.exp: Add new assignment test.
This commit is contained in:
parent
37a9e49a28
commit
602f5faf49
4 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2012-09-19 Andrew Burgess <aburgess@broadcom.com>
|
||||
|
||||
* ld-scripts/assign-loc.d: New file. Test for assigning absolute
|
||||
symbol to location counter.
|
||||
* ld-scripts/assign-loc.t: New file. Linker script for above test.
|
||||
* ld-scripts/expr.exp: Add new assignment test.
|
||||
|
||||
2012-09-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/14591
|
||||
|
|
11
ld/testsuite/ld-scripts/assign-loc.d
Normal file
11
ld/testsuite/ld-scripts/assign-loc.d
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ld: -T assign-loc.t
|
||||
#source: data.s
|
||||
#nm: -n
|
||||
#notarget: rs6000-*-aix*
|
||||
#...
|
||||
0+0100 A HEAP_SIZE
|
||||
#...
|
||||
0+2000 [AB] _start
|
||||
#...
|
||||
0+2100 [AB] _end
|
||||
#pass
|
17
ld/testsuite/ld-scripts/assign-loc.t
Normal file
17
ld/testsuite/ld-scripts/assign-loc.t
Normal file
|
@ -0,0 +1,17 @@
|
|||
SECTIONS
|
||||
{
|
||||
. = 0x2000 ;
|
||||
|
||||
_start = .;
|
||||
|
||||
HEAP_SIZE = 0x100;
|
||||
|
||||
.heap : {
|
||||
. = HEAP_SIZE;
|
||||
. = ALIGN(4);
|
||||
}
|
||||
|
||||
_end = .;
|
||||
|
||||
/DISCARD/ : { *(*) }
|
||||
}
|
|
@ -23,3 +23,4 @@
|
|||
run_dump_test expr1
|
||||
run_dump_test expr2
|
||||
run_dump_test sane1
|
||||
run_dump_test assign-loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue