binutils-gdb/ld/testsuite/ld-msp430-elf/valid-map-foo.s
Jozef Lawrynowicz e25de718de MSP430 Linker: Define __crt0_init_bss/__crt0_movedata symbols when .lower or .either prefixed sections are present.
ld	* config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
	symbol when .lower.bss or .either.bss sections exist.
	Define __crt0_movedata when .lower.data or .either.data sections exist.
	* testsuite/gas/msp430/either-data-bss-sym.d: New test.
	* testsuite/gas/msp430/low-data-bss-sym.d: New test.
	* testsuite/gas/msp430/either-data-bss-sym.s: New test source.
	* testsuite/gas/msp430/low-data-bss-sym.s: New test source.
	* testsuite/gas/msp430/msp430.exp: Run new tests.
	Enable large code model when running -mdata-region={upper,either}
	tests.
2019-04-17 15:05:08 +01:00

27 lines
475 B
ArmAsm

.file "foo.c"
.text
.section .text.foo1,"ax",@progbits
.balign 2
.global foo1
.type foo1, @function
foo1:
; start of function
; framesize_regs: 0
; framesize_locals: 0
; framesize_outgoing: 0
; framesize: 0
; elim ap -> fp 2
; elim fp -> sp 0
; saved regs:(none)
; start of prologue
; end of prologue
NOP
.L2:
MOV.W &a, R12
CMP.W #0, R12 { JNE .L2
MOV.B #0, R12
; start of epilogue
RET
.size foo1, .-foo1
.ident "GCC: (jozef) 7.3.2"