URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 38 |
Rev 156 |
;;; Bug #1403: Branch adjustment to another section not correct when doing linker relaxation
|
;;; 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
|
;;; http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1403&group_id=2424
|
;;;
|
;;;
|
.sect .text
|
.sect .text
|
.globl _start
|
.globl _start
|
_start:
|
_start:
|
.relax L1
|
.relax L1
|
ldx #table
|
ldx #table
|
bset 0,x #4
|
bset 0,x #4
|
L1:
|
L1:
|
bra toto ; bra is assembled as a jmp and relaxed
|
bra toto ; bra is assembled as a jmp and relaxed
|
|
|
.sect .page0
|
.sect .page0
|
.globl table
|
.globl table
|
table: .long 0
|
table: .long 0
|
|
|
.sect .text.toto
|
.sect .text.toto
|
.globl toto
|
.globl toto
|
toto:
|
toto:
|
rts
|
rts
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.