1;;; Bug #1417:	Branch wrong after linker relaxation
2;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1417&group_id=2424
3;;;
4	.sect .text
5	.globl _start
6_start:
7	tst	table
8	bne	L1		; Branch was adjusted but it must not
9	jsr	foo
10L1:
11	.relax	L2
12	ldx	#table		; Instruction removed
13	bset	0,x #4		; Changed to bset *table #4
14L2:
15	rts
16foo:
17	rts
18
19	.sect .page0
20	.globl table
21table:	.long 0
22