2 ; RUN
: llvm-mc
-filetype
=obj
-triple
=msp430-elf
-o
%t1.o
%s
3 ; RUN
: echo
-e
'.global _start\n _start: nop' | llvm-mc
-filetype
=obj
-triple
=msp430-elf
-o
%t2.o
-
4 ; RUN
: ld.lld
-o
%t.exe
--Tdata
=0x2000 --Ttext
=0x8000 --defsym
=_byte
=0x21 -z separate-code
%t2.o
%t1.o
5 ; RUN
: llvm-objdump
-s
-d
%t.exe | FileCheck
%s
7 ;; Check handling of basic msp430 relocation types.
17 ; CHECK
: Contents of section
.data:
18 ; CHECK-NEXT
: 2000 21008000 800000
26 ; CHECK
: Disassembly of section
.text:
28 ; CHECK-NEXT
: <_start
>:
29 ; CHECK-NEXT
: 8000: {{.*}} nop
31 ; CHECK-NEXT
: 8004: {{.*}} jmp $-4
38 ;; R_MSP430_16_PCREL_BYTE
41 ; CHECK
: 800a: {{.*}} mov #-1, -12
43 ; RUN
: od
-x
%t.exe | FileCheck
-check-prefix
=TRAP %s
44 ;
TRAP: 4343 4343 4343 4343 4343 4343 4343 4343