2 # ld: -N --oformat binary --section-start=.text=0x10000000
3 # sim: --architecture crisv32 --target binary --cris-program-offset=0x10000000 --cris-start-address=0x10000040 --cris-naked --memory-region 0x10000000,0x1000
4 .include "testutils.inc"
6 ; Test that we can load a binary program at a non-zero address.
7 ; Also serves to exercise the --cris-program-offset and
8 ; --cris-start-address options.
10 ; Make sure starting at the first address does fail.
13 ; ...and that we know an offset we can jump for it to work, and all we
14 ; have to assume is that "fail" takes no more than 64 bytes.
23 ; Make sure we're loaded at the linked address. Since we're re-used
24 ; in other tests, we have to provide for non-v32 as well.
25 .if ..asm.arch.cris.v32
39 ; Make sure we have enough contents for the mapping.