OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-m68hc11/] [bug-1403.s] - Diff between revs 38 and 156

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
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.