summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-m68hc11/bug-1403.s
blob: 9c6fc9b46b781099eac096e2b2bed4b34d657772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; Bug #1403:	Branch adjustment to another section not correct when doing linker relaxation
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1403&group_id=2424
;;; 
	.sect .text
	.globl _start
_start:
	.relax	L1
	ldx	#table
	bset	0,x #4
L1:
	bra	toto		; bra is assembled as a jmp and relaxed

	.sect .page0
	.globl table
table:	.long 0

	.sect	.text.toto
	.globl	toto
toto:
	rts