aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/weakdef-1.s
blob: ddce4fbd60b113357e477f4c3b8e08807e0f7aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	.weak	_wsym
	.section	.data$wsym,"w"
	.align 4
_wsym:
	.long	1

	.section	.text$start,"x"
	.globl	_start
	.def	_start;	.scl	2;	.type	32;	.endef
_start:
	pushl	%ebp
	movl	%esp, %ebp
	movl	_wsym, %eax
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	nop
	popl	%ebp
	ret