mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
19dd1b4833
* ld-m68hc11/adj-jump.d: New test for linker relaxation. * ld-m68hc11/adj-jump.s: Likewise. * ld-m68hc11/adj-brset.s: Likewise. * ld-m68hc11/adj-brset.d: Likewise. * ld-m68hc11/relax-direct.s: Likewise. * ld-m68hc11/relax-direct.d: Likewise. * ld-m68hc11/relax-group.s: Likewise. * ld-m68hc11/relax-group.d: Likewise. * ld-m68hc11/bug-1403.d: Likewise. * ld-m68hc11/bug-1403.s: Likewise.
21 lines
387 B
ArmAsm
21 lines
387 B
ArmAsm
;;; 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
|