aboutsummaryrefslogtreecommitdiffstats
path: root/test/br3392538.asm
blob: 54e8f08d6c1fe72d9e8e46387db45c30478675b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	bits 64
	default	rel

	section	.text
	global	_start
_start:

	mov	rax, 1	; write syscall
	mov	rdi, 1
	mov	rsi, msg
	mov	rdx, msglen 
	syscall

	mov	rax, 60	; exit syscall
	sub	rdi, rdi
	syscall

; either of the following lines cause: Error in `nasm': double free or corruption ; Aborted (core dumped)
foo
; warning: label alone on a line without a colon might be in error [-w+label-orphan]
	mov	r8, r9, r10
; error: invalid combination of opcode and operands
	add	r8d, byte 80h
; warning: signed byte value exceeds bounds [-w+number-overflow]
	section	.data
msg	db	"Hello, world!", 10
msglen	equ	$-msg