bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/370] New: bad output when linking to S-records


From: michaelb at ieee dot org
Subject: [Bug ld/370] New: bad output when linking to S-records
Date: 7 Sep 2004 10:45:40 -0000

Running "make check" shows that the tests "S-records" and "S-records with 
constructors" fail, as the output files generated by linking to S-records 
differ from those generated by linking to ELF then performing an objcopy to 
S-records. 
 
Closer inspection of the output files generated in these tests indicates that 
when linking to S-records, various relocations seem to be performed incorrectly 
(verified this by diffing the S-record files and manually disassembling some of 
the contents around the differences). 
 
In particular, some of the 8 bit PC relative relocations (for branch 
instructions) seemed to be off by one, and the 24 bit relocations (for JSR 
instructions) seemed to have been done as 32 relocations, with the resolved 
address being written into 4 bytes instead of 3. This resulted in the first 
byte of the following instruction being clobbered.

-- 
           Summary: bad output when linking to S-records
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: michaelb at ieee dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: h8300-unknown-elf


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

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