bugGNU Development Chain for 68HC11/68HC12 - Bugs: bug #1403, Branch adjustment to another...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1403: Branch adjustment to another section not correct when doing linker relaxation

Submitter:  Stephane Carrez <ciceron>
Submitted:  Sat 12 Oct 2002 10:25:17 AM UTC
   
 
Category:  binutils Severity:  3 - Normal
Item Group:  sw-bug Status:  None
Privacy:  Public Assigned to:  ciceron
Open/Closed:  Closed

Sat 12 Oct 2002 10:25:17 AM UTC, original submission:  

A jump to a different section is not relaxed correctly.
In the following assembly code:

        .sect .text
        .globl _start
_start:
        .relax  L1
        ldx     #table
        bset    0,x #4
L1:
        nop
        bra     toto

        .sect   .text.toto
        .globl  toto
toto:
        rts
        .sect .page0
        .globl table
table:  .long 0

When assembled and linked with --relax, the 'bra toto'
is adjusted but the branch becomes invalid.  This comes
from the fact that 'toto' is not in the same
section as the 'bra' which use it.

Stephane Carrez <ciceron>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-10-15 ciceron Open/ClosedOpen None

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code