bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/248] New: "ignoring least significant bits in branch offset"


From: hollisb at us dot ibm dot com
Subject: [Bug gas/248] New: "ignoring least significant bits in branch offset"
Date: 1 Jul 2004 15:35:02 -0000

Affected versions:
GNU assembler version 2.15.90.0.3 (powerpc64-unknown-linux-gnu) using BFD
version 2.15.90.0.3 20040415
GNU assembler version 2.14 (powerpc-linux) using BFD version 2.14 20030612
GNU assembler version 2.13.90.0.18 (ppc-yellowdog-linux) using BFD version
2.13.90.0.18 20030206

cat > testcase.S << EOF
        .text
        .byte 0xa5
        b foo
                                                                                
        .align 2
foo:
        b .
EOF

as testcase.S -Z -o testcase.o

Actual Results:
testcase.S: Assembler messages:
testcase.S:3: Error: ignoring least significant bits in branch offset

Expected Results:
The error message implies that the branch target is not 4-byte aligned, which is
not the case.

The error we want (if any) would probably be something like "misaligned
instruction".

Additional Information:
This affects ppc64 and ppc32, and seems to have been present for a long time.

The original problem (aside from the misleading error message) was an inline
assembly .byte in C code. Perhaps the "asm" statement could issue a .align
after its code...?

-- 
           Summary: "ignoring least significant bits in branch offset"
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hollisb at us dot ibm dot com
                CC: bug-binutils at gnu dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=248

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]