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