bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/301] New: for h8s/22xx targets, range check for inline ass


From: alexander dot stohr at gmx dot de
Subject: [Bug binutils/301] New: for h8s/22xx targets, range check for inline assembly "jsr" is too wide
Date: 5 Aug 2004 13:43:22 -0000

the memory-indirect-jsr instruction 
only allows adress values in the range of 0..255.

but in inline assembly the accepted range is much wider.
in the end this does lead to corrupted opcodes in the binary
rather than raising an error at compile time.

further some opcode decoding (disassembling) is broken.

please see attached testing program 
with various broken cases for your purposes.

toolset:

GNU objdump 2.15.90.0.3 20040415
h8300-hms-gcc (GCC) 3.4.1
GNU assembler 2.15.90.0.3

-- 
           Summary: for h8s/22xx targets, range check for inline assembly
                    "jsr" is too wide
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: alexander dot stohr at gmx dot de
                CC: bug-binutils at gnu dot org


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

------- 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]