ld/testsuite/ld-m68hc11/bug-1403.s
raw| 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 |
| 12 | |
| 13 | .sect .page0 |
| 14 | .globl table |
| 15 | table: .long 0 |
| 16 | |
| 17 | .sect .text.toto |
| 18 | .globl toto |
| 19 | toto: |
| 20 | rts |