mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
131cb553d6
gas/ChangeLog: 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X relocations when the target is 430X, except when extracting part of an expression. (msp430_srcoperand): Adjust comment. Initialize the expp member of the msp430_operand_s struct as appropriate. (msp430_dstoperand): Likewise. * testsuite/gas/msp430/msp430.exp: Run new test. * testsuite/gas/msp430/reloc-lo-430x.d: New test. * testsuite/gas/msp430/reloc-lo-430x.s: New test. include/ChangeLog: 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com> * opcode/msp430.h (enum msp430_expp_e): New. (struct msp430_operand_s): Add expp member to struct. ld/ChangeLog: 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com> * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test. * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
23 lines
265 B
ArmAsm
23 lines
265 B
ArmAsm
.text
|
|
.balign 2
|
|
.global foo
|
|
.type foo, @function
|
|
foo:
|
|
MOV.W #lo (P), R8
|
|
RETA
|
|
.size foo, .-foo
|
|
|
|
.balign 2
|
|
.global main
|
|
.type main, @function
|
|
main:
|
|
CALLA #foo
|
|
.L4:
|
|
BRA #.L4
|
|
.size main, .-main
|
|
.section .bss,"aw",@nobits
|
|
.balign 2
|
|
.global P
|
|
P:
|
|
.zero 4
|